Grant
Authentication middleware for koa, hapi, and express
Express
Server
1) Add this code with the right key and secret
2) Set the redirect url for the oauth to [protocol]://[host]/connect/[provider]/callback
3) Login by navigating user to /connect/:provider
4) Will send the user to the defaults + callback Can just define the full url callback
5) The data will wither be in req.session.grant
or req.query
depending on the transport selected
Last updated