Skip to content

Commit

Permalink
feat add meta fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Dec 3, 2023
1 parent e96f5df commit 1de98b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class Authorizer {
try {
const res = await this.graphqlQuery({
query:
'query { meta { version is_google_login_enabled is_facebook_login_enabled is_github_login_enabled is_linkedin_login_enabled is_apple_login_enabled is_twitter_login_enabled is_microsoft_login_enabled is_twitch_login_enabled is_email_verification_enabled is_basic_authentication_enabled is_magic_link_login_enabled is_sign_up_enabled is_strong_password_enabled } }',
'query { meta { version is_google_login_enabled is_facebook_login_enabled is_github_login_enabled is_linkedin_login_enabled is_apple_login_enabled is_twitter_login_enabled is_microsoft_login_enabled is_twitch_login_enabled is_email_verification_enabled is_basic_authentication_enabled is_magic_link_login_enabled is_sign_up_enabled is_strong_password_enabled is_multi_factor_auth_enabled is_mobile_basic_authentication_enabled is_phone_verification_enabled } }',
})

return res.meta
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export interface MetaData {
is_magic_link_login_enabled: boolean
is_sign_up_enabled: boolean
is_strong_password_enabled: boolean
is_multi_factor_auth_enabled: boolean
is_mobile_basic_authentication_enabled: boolean
is_phone_verification_enabled: boolean
}

export interface UpdateProfileInput {
Expand Down

0 comments on commit 1de98b2

Please sign in to comment.