Class: GraphQL::Auth::Configuration
- Inherits:
-
Object
- Object
- GraphQL::Auth::Configuration
- Defined in:
- lib/graphql-auth/configuration.rb
Instance Attribute Summary collapse
-
#allow_lock_account ⇒ Object
Returns the value of attribute allow_lock_account.
-
#allow_sign_up ⇒ Object
Returns the value of attribute allow_sign_up.
-
#allow_unlock_account ⇒ Object
Returns the value of attribute allow_unlock_account.
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#jwt_secret_key ⇒ Object
Returns the value of attribute jwt_secret_key.
-
#sign_up_mutation ⇒ Object
Returns the value of attribute sign_up_mutation.
-
#token_lifespan ⇒ Object
Returns the value of attribute token_lifespan.
-
#update_account_mutation ⇒ Object
Returns the value of attribute update_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.
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 @allow_sign_up = true @allow_lock_account = false @allow_unlock_account = false # Allow custom mutations for signup and update account @sign_up_mutation = '::Mutations::Auth::SignUp' @update_account_mutation = '::Mutations::Auth::UpdateAccount' end |
Instance Attribute Details
#allow_lock_account ⇒ Object
Returns the value of attribute allow_lock_account.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def allow_lock_account @allow_lock_account end |
#allow_sign_up ⇒ Object
Returns the value of attribute allow_sign_up.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def allow_sign_up @allow_sign_up end |
#allow_unlock_account ⇒ Object
Returns the value of attribute allow_unlock_account.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def allow_unlock_account @allow_unlock_account end |
#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 |
#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 |
#update_account_mutation ⇒ Object
Returns the value of attribute update_account_mutation.
4 5 6 |
# File 'lib/graphql-auth/configuration.rb', line 4 def update_account_mutation @update_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 |