Skip to content
LogoLogo

Third-party authentication

Openfort's embedded signers are fully compatible with any authentication provider that supports JWT-based, stateless authentication. This guide will show you how to integrate third-party authentication providers in your App.

Follow the guide on how to configure third party auth to learn more. The supported loginMethods are 'accelbyte', 'custom', 'firebase', 'supabase', 'lootlocker', 'playfab', and 'oidc'.

Authenticate with third-party provider

Here's how to authenticate using a third-party provider:

Usage

let result = try await Auth.auth().signIn(withEmail: username, password: password)
await authoriseToOpenfortWith(result)
    
func authoriseToOpenfortWith(_ result: AuthDataResult?) async {
    do {
        try OFSDK.setupSDK(thirdParty: .firebase) {
            try await authResult.user.getIDToken()
        }
    } catch {
        print("\(error)")
    }
}