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.



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

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

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

  @sign_in_mutation = ::Mutations::Auth::
  @sign_up_mutation = ::Mutations::Auth::

  @forgot_password_mutation = ::Mutations::Auth::ForgotPassword
  @reset_password_mutation = ::Mutations::Auth::ResetPassword

   = ::Mutations::Auth::UpdateAccount

  @validate_token_mutation = ::Mutations::Auth::ValidateToken
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

#forgot_password_mutationObject

Returns the value of attribute forgot_password_mutation.



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

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

#reset_password_mutationObject

Returns the value of attribute reset_password_mutation.



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

def reset_password_mutation
  @reset_password_mutation
end

#sign_in_mutationObject

Returns the value of attribute sign_in_mutation.



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

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

#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

#validate_token_mutationObject

Returns the value of attribute validate_token_mutation.



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

def validate_token_mutation
  @validate_token_mutation
end