Authentication using social media providers


Note! Boka Connect currently supports authentication using the providers Facebook and Google.

When using either 'facebook' or 'google' as method in the login() function, redirect_url is expected as an additional parameter.

Upon calling, this function will initiate an OAuth flow (see below) between the Boka servers and the selected provider.

When the OAuth process is complete, Boka Connect will redirect the user to a local URL in your application. On this page, the function handleLoginCallback() needs to be called to finalize the last step in the process.

Important! Should a local user in Boka not exist in at the time of OAuth completion, it will be created with name and e-mail pulled from the provider.

OAuth flow illustration

OAuth flow