Open
Description
Question 💬
I followed the example for adding the Bungie provider here. After doing so I found that the default implementation isn't happy with Typescript.
Argument of type '{ clientId: string; clientSecret: string; headers: { "X-API-Key": string; }; }' is not assignable to parameter of type 'Partial<OAuthConfig<any>>'. Object literal may only specify known properties, and 'headers' does not exist in type 'Partial<OAuthConfig<any>>'.
What is the intended setup when using Typescript with this provider?
How to reproduce ☕️
- Create a typescript application using
create t3 app
- Select nextAuth and Typescript at least
- Go to the src/server/auth.ts file
- Locate the provider section
- Copy/Paste default provider implementation from provider docs
Contributing 🙌🏽
No, I am afraid I cannot help regarding this.
Unless it is as simple as changing the default to this:
BungieProvider({
clientId: env.BUNGIE_CLIENT_ID,
clientSecret: env.BUNGIE_SECRET,
httpOptions: {
headers: {
"X-API-Key": env.BUNGIE_API_KEY
}
}
}),