Dylan-Kentish / firebase-application-auth

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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.

About

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


Languages

Language:JavaScript 56.0%Language:HTML 24.3%Language:CSS 19.7%