0.3.10 • Published 2 years ago

pg-authentication v0.3.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Introduction

This package will help you validate user credentials by decoding jwt user token and refresh token in cookies then redirect user to appropriate url

Commands

To install pg-authentication, use:

npm i pg-authentication # or yarn add pg-authentication

How to use

After installing pg-authentication, just import authentication from the package

import authentication from 'pg-authentication';

then pass it as the parameter in app.use

app.use(authentication());

If the token is validated you will be redirected to the url specified, otherwise you will be redirected to sign in page.

0.3.10

2 years ago

0.3.9

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago