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.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/graphql-auth/configuration.rb', line 12

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

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

  @sign_up_mutation = false
  @lock_account_mutation = false
  @unlock_account_mutation = false
end

Instance Attribute Details

#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

#lock_account_mutationObject

Returns the value of attribute lock_account_mutation.



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

def 
  @lock_account_mutation
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

#unlock_account_mutationObject

Returns the value of attribute unlock_account_mutation.



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

def 
  @unlock_account_mutation
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