mirror of
https://github.com/nestriness/nestri.git
synced 2026-09-22 18:55:22 +03:00
feat: Sync to OSS repo
This commit is contained in:
12
packages/auth/src/provider/linkedin.ts
Normal file
12
packages/auth/src/provider/linkedin.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Oauth2Provider, type Oauth2WrappedConfig } from './oauth2.js';
|
||||
|
||||
export function LinkedInAdapter(config: Oauth2WrappedConfig) {
|
||||
return Oauth2Provider({
|
||||
...config,
|
||||
type: 'linkedin',
|
||||
endpoint: {
|
||||
authorization: 'https://www.linkedin.com/oauth/v2/authorization',
|
||||
token: 'https://www.linkedin.com/oauth/v2/accessToken'
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user