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
- Host: GitHub
- URL: https://github.com/dylan-kentish/firebase-application-auth
- Owner: Dylan-Kentish
- Created: 2022-09-27T17:03:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-07T21:17:40.000Z (over 3 years ago)
- Last Synced: 2025-01-19T16:16:13.854Z (over 1 year ago)
- Topics: deep-link, firebase, firebase-auth, web-app
- Language: JavaScript
- Homepage:
- Size: 322 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.