Third-party auth providers
Learn how to integrate with third-party auth provider.
Openfort's embedded signers are fully-compatible with any authentication provider that supports JWT-based, stateless authentication. If you're looking to add embedded signers to your app, you can either:
You will need to call the authenticateWithThirdPartyProvider
method:
_10import {ThirdPartyOAuthProvider, TokenType} from "@openfort/openfort-js";_10_10await openfort.authenticateWithThirdPartyProvider({_10 provider: ThirdPartyOAuthProvider.FIREBASE, // or SUPABASE, etc._10 token: "YOUR_USER_AUTH_TOKEN",_10 tokenType: TokenType.ID_TOKEN, // or CUSTOM_TOKEN_10});
To make these instructions concrete, this guide uses Firebase as a sample third party auth provider that you can integrate alongside Openfort.
Follow the guide on how to configure third party auth to learn more.
The supported loginMethods are 'accelbyte'
, 'custom'
, 'firebase'
, 'supabase'
, 'lootlocker'
, 'playfab'
, 'telegramMiniApp'
and 'oidc'
.
Uppon successful authentication, the SDK will return: