Sha256: 8dc17d3efbb4f1122787b15589e42dfa817b698f1b212b071e6b8027e10d2406

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 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::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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ibrain-auth-0.3.7 lib/ibrain/auth_configuration.rb