Skip to content

Commit

Permalink
chore: some docs and package.json improves
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Apr 13, 2024
1 parent a799519 commit b050140
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# elysia-oauth2

Currently, if the provider has a **codeVerifier**, you have to work with it yourself.
[Elysia](https://elysiajs.com/) plugin for [OAuth 2.0](https://en.wikipedia.org/wiki/OAuth) Authorization Flow.

Powered by [Arctic](https://arctic.js.org/) with more than 42 oauth2 providers!

Expand All @@ -19,7 +19,11 @@ import { oauth2 } from "elysia-oauth2";
new Elysia()
.use(
oauth2({
VK: ["clientID", "clientSecret", "RedirectURI"],
VK: [
"clientID",
"clientSecret",
"https://example.com/auth/vk/callback",
],
})
)
.get("/auth/vk", ({ oauth2 }) => oauth2.redirect("VK"))
Expand All @@ -28,7 +32,6 @@ new Elysia()

// send request to API with token
})
.onError(console.error)
.listen(3001);
```

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{
"name": "elysia-oauth2",
"version": "1.0.1",
"version": "1.1.0",
"author": "kravets",
"type": "commonjs",
"keywords": [
"elysia",
"bun",
"oauth2",
"oauth",
"openid",
"google",
"vk",
"discord",
"passport",
"arctic"
],
"description": "Elysia plugin for OAuth 2.0 Authorization Code Flow",
"description": "Elysia plugin for OAuth 2.0 Authorization Flow with more than 42 providers",
"license": "ISC",
"main": "dist/index.js",
"devDependencies": {
Expand Down

0 comments on commit b050140

Please sign in to comment.