@authflow-js/verify

1.0.2 • Public • Published

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)

Package Sidebar

Install

npm i @authflow-js/verify

Weekly Downloads

4

Version

1.0.2

License

Unlicense

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • tiagorangel2011