mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
🤖 Merge PR #47095 [next-auth] add scope? on ProviderSpotifyOptions by @youpy
* add `scope?` on `ProviderSpotifyOptions` * [next-auth] Add tests for `Providers.Spotify`
This commit is contained in:
parent
0d9e09b48c
commit
de98631ecb
@ -415,6 +415,13 @@ Providers.Spotify({
|
||||
clientSecret: 'bar123',
|
||||
});
|
||||
|
||||
// $ExpectType GenericReturnConfig
|
||||
Providers.Spotify({
|
||||
clientId: 'foo123',
|
||||
clientSecret: 'bar123',
|
||||
scope: 'user-read-email',
|
||||
});
|
||||
|
||||
// $ExpectType GenericReturnConfig
|
||||
Providers.Basecamp({
|
||||
clientId: 'foo123',
|
||||
|
||||
1
types/next-auth/providers.d.ts
vendored
1
types/next-auth/providers.d.ts
vendored
@ -305,6 +305,7 @@ type Spotify = (options: ProviderSpotifyOptions) => GenericReturnConfig;
|
||||
interface ProviderSpotifyOptions {
|
||||
clientId: string;
|
||||
clientSecret: string;
|
||||
scope?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user