authflow-helper
v1.0.6
Published
A helper for Authflow in Javascript
Downloads
5
Maintainers
Readme
Don't use this. Use @authflow-js/verify instead, as that is owned by Authflow's creator.
authflow
A helper for Authflow, a project to make Google OAuth easy. Created for Zarran API.
How do I use this?
Add this to your backend and use Authflow to get a JWT. Send it to "checktoken". If the token is valid it will respond with the user's email, if not it will throw an error.
Example:
import authflow from "authflow"
const token = "token" // Put your Authflow token in here
const mail = await authflow.checktoken(token)
console.log(mail)