Skip to content

Commit

Permalink
add twitter adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
5brian committed Dec 11, 2024
1 parent 8fc4383 commit bc4297b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/openauth/src/adapter/x.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Oauth2Adapter, Oauth2WrappedConfig } from "./oauth2.js"

export function XAdapter(config: Oauth2WrappedConfig) {
return Oauth2Adapter({
...config,
type: "x",
endpoint: {
authorization: "https://twitter.com/i/oauth2/authorize",
token: "https://api.x.com/2/oauth2/token"
},
})
}

0 comments on commit bc4297b

Please sign in to comment.