Class: GraphQL::Auth::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql-auth/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/graphql-auth/configuration.rb', line 14

def initialize
  @token_lifespan = 4.hours
  @jwt_secret_key = ENV['JWT_SECRET_KEY']
  @app_url = ENV['APP_URL']

  @user_type = '::Types::Auth::User'

  # Devise allowed actions
   = true
   = false
   = false

  # Allow custom mutations for signup and update account
  @sign_up_mutation = '::Mutations::Auth::SignUp'
   = '::Mutations::Auth::UpdateAccount'
end

Instance Attribute Details

#allow_lock_accountObject

Returns the value of attribute allow_lock_account.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def 
  
end

#allow_sign_upObject

Returns the value of attribute allow_sign_up.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def 
  
end

#allow_unlock_accountObject

Returns the value of attribute allow_unlock_account.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def 
  
end

#app_urlObject

Returns the value of attribute app_url.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def app_url
  @app_url
end

#jwt_secret_keyObject

Returns the value of attribute jwt_secret_key.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def jwt_secret_key
  @jwt_secret_key
end

#sign_up_mutationObject

Returns the value of attribute sign_up_mutation.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def 
  @sign_up_mutation
end

#token_lifespanObject

Returns the value of attribute token_lifespan.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def token_lifespan
  @token_lifespan
end

#update_account_mutationObject

Returns the value of attribute update_account_mutation.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def 
  
end

#user_typeObject

Returns the value of attribute user_type.



4
5
6
# File 'lib/graphql-auth/configuration.rb', line 4

def user_type
  @user_type
end