🤖 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:
youpy 2020-08-29 05:42:45 +09:00 committed by GitHub
parent 0d9e09b48c
commit de98631ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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',

View File

@ -305,6 +305,7 @@ type Spotify = (options: ProviderSpotifyOptions) => GenericReturnConfig;
interface ProviderSpotifyOptions {
clientId: string;
clientSecret: string;
scope?: string;
}
/**