mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): validate configuration
This commit is contained in:
parent
ad98ce4e88
commit
e78c6e312d
8 changed files with 109 additions and 12 deletions
|
|
@ -13,9 +13,9 @@ export class SpotifyStrategy extends PassportStrategy(Strategy) {
|
|||
super({
|
||||
clientID: config.get<string>("SPOTIFY_CLIENT_ID"),
|
||||
clientSecret: config.get<string>("SPOTIFY_CLIENT_SECRET"),
|
||||
callbackURL: `${
|
||||
config.get<string>("BASE_DOMAIN") || "http://localhost:3000"
|
||||
}/api/v1/auth/spotify/callback`,
|
||||
callbackURL: `${config.get<string>(
|
||||
"APP_URL"
|
||||
)}/api/v1/auth/spotify/callback`,
|
||||
scope: [
|
||||
"user-read-private",
|
||||
"user-read-email",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue