@authflow-js/verify
v1.0.2
Published
A helper for Authflow in Javascript
Downloads
20
Maintainers
Readme
Authflow Token Verify
A helper for Authflow, a project to make Google OAuth easy. Original project by ~idonotlikeoutlook
How do I use this?
Add this to your backend and use Authflow to get a JWT. Send it to "verify"
. If the token is valid it will respond with a JSON including multiple user info, if not it will throw an error.
Example:
const authflow = require("@authflow-js/verify");
const token = "token" // Put the token recieved from Authflow here
const payload = await authflow.verify(token)
console.log(payload)