class GraphQL::Auth::Configuration

Attributes

allow_lock_account[RW]
allow_sign_up[RW]
allow_unlock_account[RW]
app_url[RW]
jwt_secret_key[RW]
sign_up_mutation[RW]
token_lifespan[RW]
update_account_mutation[RW]
user_type[RW]

Public Class Methods

new() click to toggle source
# 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