Social Authentication

Authorize and authenticate your users using a Social Connection

You can easily add Social Authentication to your app using providers like Apple, Google, or GitHub to authenticate your users. Before moving forward, you'll need to configure your Social Connection in the Passage Console.


Android and iOS platforms each have their own configuration steps required to provide a secure Social authentication experience for your users.

Authorize Social Connection

To register or log in a user using a Social Connection, simply call passage.authorizeWith(). Here is an example using Sign in with GitHub:

await passage.authorizeWith(SocialConnection.Github);
// If successful, you will be able to get the current user:
const user = await passage.getCurrentUser();

Last updated