Skip to content

Commit e89f282

Browse files
authored
feat: added linkedin adapter (#100)
* add linkedin adapter * add linkedin adapter
1 parent d89bc45 commit e89f282

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/ten-pans-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openauthjs/openauth": patch
3+
---
4+
5+
add linkedin adapter
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Oauth2Adapter, type Oauth2WrappedConfig } from "./oauth2.js"
2+
3+
export function LinkedInAdapter(config: Oauth2WrappedConfig) {
4+
return Oauth2Adapter({
5+
...config,
6+
type: "linkedin",
7+
endpoint: {
8+
authorization: "https://www.linkedin.com/oauth/v2/authorization",
9+
token: "https://www.linkedin.com/oauth/v2/accessToken",
10+
},
11+
})
12+
}

0 commit comments

Comments
 (0)