JavaScript libraries for third-party authentication with plug.dj.
plug-auth works by verifying that a user has access to the account they claim to be.
- plug-auth gives the user a unique token
- the user changes their profile blurb (bio) to include the token value
- plug-auth checks that the user's blurb includes the token value
- plug-auth grants access and generates a JSON Web Token that can be used to verify the user's identity again later
- the user changes their blurb back
The client and server packages are both maintained in a single repo (this one). You can build them both by:
npm run build
plug-auth uses ava for tests and standard for linting.
To run tests:
npm run ava
To lint:
npm run lint
To do both:
npm test