0.3.3 • Published 1 year ago

@nexys/oauth v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

OAuth helpers

NPM package NPM package Prettier Build and Test Package Build and Test Package and (publish)

router.get("/sso/red", async (ctx) => {
  ctx.redirect(gh.oAuthUrl());
});

router.get("/sso/github/redirect", async (ctx) => {
  const { code } = ctx.query;
  const token = await gh.callback(code as string);
  const profile = await gh.getProfile(token);
  
  // here connect to the user management
  ctx.body = profile
});

Link to old generic route generator (deleted from the repo, to reduce the amount of dependencies)

0.3.2

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.3

1 year ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.10

3 years ago

0.1.12

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.8

3 years ago

0.1.17

3 years ago

0.1.7

3 years ago

1.0.0

3 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago