Sha256: f244aa7b3dd30fc7a77c8f551f477707b761e0af511093d2479fb92470c00ae8

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

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::Types::Input::SignUpInput

    # sign_in input
    preference :sign_in_input, :class, default: Ibrain::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

    preference :social_sign_in_input, :class, default: Ibrain::Types::Input::SocialSignInInput
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ibrain-auth-0.3.10 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.9 lib/ibrain/auth_configuration.rb
ibrain-auth-0.3.8 lib/ibrain/auth_configuration.rb