1.0.2 • Published 1 year ago

@authflow-js/verify v1.0.2

Weekly downloads
-
License
Unlicense
Repository
-
Last release
1 year ago

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)