Link

App-to-app login

An (third-party) app can use a nextAuth-enabled app for performing authentication. In this case the nextAuth-enabled app will handle all authentication aspects, and will, after approval/rejection by the user, return to the caller app.

By using the getQrLogin API call, you can obtain a byte array containing the data that is displayed in a login QR code. This data needs to be embedded into a URI using base64 encoding (preferably URL-type encoding):

    <URI scheme>:<base64 encoded login QR data>

The URI scheme depends on the app that will handle authentication. On both Android and iOS, the default nextAuth app handles the com.nextauth.client scheme. For custom authenticator apps, a dedicated scheme should be configured.