mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-27 19:14:52 +03:00
Fix typo in auth provider error message (#1189)
This commit is contained in:
parent
d1614372bf
commit
3f16e92b58
@ -56,11 +56,11 @@ async function addProviderProfileToRequest(
|
||||
|
||||
function ensureValidConfig(provider: ProviderConfig, config: OAuthConfig): void {
|
||||
if (!config.clientID) {
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientID provided via env varibales.`)
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientID provided via env variables.`)
|
||||
}
|
||||
|
||||
if (!config.clientSecret) {
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientSecret provided via env varibales.`)
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientSecret provided via env variables.`)
|
||||
}
|
||||
|
||||
if (!config.scope || !Array.isArray(config.scope)) {
|
||||
|
@ -158,7 +158,7 @@
|
||||
"file",
|
||||
"server/src/auth/providers/oauth/init.ts"
|
||||
],
|
||||
"7db2dc4736dadede12c9f85a88d31b992fe26ad06d57dde34784a2db54356ee4"
|
||||
"ff022c6f9132db9c3833afd12018fecfcdd3243cbf9e5d1b69367864301fe085"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -56,11 +56,11 @@ async function addProviderProfileToRequest(
|
||||
|
||||
function ensureValidConfig(provider: ProviderConfig, config: OAuthConfig): void {
|
||||
if (!config.clientID) {
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientID provided via env varibales.`)
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientID provided via env variables.`)
|
||||
}
|
||||
|
||||
if (!config.clientSecret) {
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientSecret provided via env varibales.`)
|
||||
throw new Error(`The ${provider.displayName} auth provider requires clientSecret provided via env variables.`)
|
||||
}
|
||||
|
||||
if (!config.scope || !Array.isArray(config.scope)) {
|
||||
|
Loading…
Reference in New Issue
Block a user