Package Exports
- eve-sso-simple
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eve-sso-simple) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eve-sso-simple
Simple promise-based node.js module simplifying EVE Online's SSO authentication flow. Please email me for bugs/suggestions!
Usage
router.get('/', (req, res) => {
async function login(req, res) {
var tokens = await loginService.login(
// Tokens (JWT) encoded using 'token_secret,' then saved as cookies.
// Redirects to SSO login page if not logged in.
{
// Fill in below the application details registered on the dev page.
client_id: ...,
client_secret: ...,
redirect_uri: ...,
scope: ...,
token_secret: 'secret' // For jwt encoding.
}
, req, res);
if (tokens)
res.send(tokens);
};
login(req, res);
});