An open API service indexing awesome lists of open source software.

https://github.com/dylan-kentish/firebase-application-auth

Demonstrates how to use firebase authentication from un-trusted applications, via an external web-app
https://github.com/dylan-kentish/firebase-application-auth

deep-link firebase firebase-auth web-app

Last synced: about 1 month ago
JSON representation

Demonstrates how to use firebase authentication from un-trusted applications, via an external web-app

Awesome Lists containing this project

README

          

# firebase-application-auth

This repository demonstrates using the firebase/auth functionality.

The endpoint /desktopSignIn redirects the user to google authentication.

Once authenticated the user returns to the web app. The web app then makes use of the function in [electron-firebase-auth-functions](https://github.com/Dylan-Kentish/electron-firebase-auth-functions) to retrieve a custom token.

The web app then redirects the user to the custom protocol `my-app://signIn?authToken=XXX`, which is assumed to be handled by an installed application.

This flow is suitable for custom authentication within an untrusted application.