1.0.6 • Published 1 year ago
authflow-helper v1.0.6
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)