client-passport
Universal authentication for client-side apps, supported providers:
- Google Sign-in for Websites
- Facebook SDK
Usage
Create authenticator
instance.
;; const authenticator = ;
Subscribe to user
changes. Every time user logs in this callback is called. When
user logs out, user
is set to null
.
authenticator { //};
Sign-in with selected provider.
user = await authenticator;user = await authenticator;
Sign-out.
await authenticator;
License
Unlicense — public domain.