Class: GraphQL::Auth::Configuration
- Inherits:
-
Object
- Object
- GraphQL::Auth::Configuration
- Defined in:
- lib/graphql-auth/configuration.rb
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#jwt_secret_key ⇒ Object
Returns the value of attribute jwt_secret_key.
-
#lock_account_mutation ⇒ Object
Returns the value of attribute lock_account_mutation.
-
#sign_up_mutation ⇒ Object
Returns the value of attribute sign_up_mutation.
-
#token_lifespan ⇒ Object
Returns the value of attribute token_lifespan.
-
#unlock_account_mutation ⇒ Object
Returns the value of attribute unlock_account_mutation.
-
#user_type ⇒ Object
Returns the value of attribute user_type.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_url ⇒ Object
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_key ⇒ Object
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_mutation ⇒ Object
Returns the value of attribute lock_account_mutation.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def lock_account_mutation @lock_account_mutation end |
#sign_up_mutation ⇒ Object
Returns the value of attribute sign_up_mutation.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def sign_up_mutation @sign_up_mutation end |
#token_lifespan ⇒ Object
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_mutation ⇒ Object
Returns the value of attribute unlock_account_mutation.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def unlock_account_mutation @unlock_account_mutation end |
#user_type ⇒ Object
Returns the value of attribute user_type.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def user_type @user_type end |