Sha256: c7dae5f3b6d375f4e1f7a3a5e784bdcf183fa91ad0677ad06856bd4d46cd6cfa

Contents?: true

Size: 1020 Bytes

Versions: 8

Compression:

Stored size: 1020 Bytes

Contents

# frozen_string_literal: true

module Ibrain
  class AuthConfiguration < Preferences::Configuration
    preference :api_version, :string, default: 'v1'
    # Firebase API Key
    preference :firebase_api_key, :string, default: nil

    # JWT Secret key
    preference :jwt_secret_key, :string, default: nil

    # JWT user table name
    preference :user_table_name, :string, default: 'ibrain_users'

    # sign_up input
    preference :sign_up_input, :class, default: Ibrain::Auth::Types::Input::SignUpInput

    # sign_in input
    preference :sign_in_input, :class, default: Ibrain::Auth::Types::Input::SignInInput

    # firebase private json path
    preference :firebase_private_key_path, :string, default: Rails.root.join('static/firebase.json')

    # firebase aud url
    preference :firebase_auth_url, :string, default: "https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit"

    # firebase owner email
    preference :firebase_owner_email, :string, default: nil
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibrain-auth-0.3.6 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.5 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.4 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.3 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.2 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.1 lib/ibrain/auth_configuration.rb
ibrain-auth-0.2.9 lib/ibrain/auth_configuration.rb
ibrain-auth-0.2.7 lib/ibrain/auth_configuration.rb