Fix typo in auth provider error message (#1189)

This commit is contained in:
Richard 2023-05-04 12:40:59 +03:00 committed by GitHub
parent d1614372bf
commit 3f16e92b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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)) {

View File

@ -158,7 +158,7 @@
"file",
"server/src/auth/providers/oauth/init.ts"
],
"7db2dc4736dadede12c9f85a88d31b992fe26ad06d57dde34784a2db54356ee4"
"ff022c6f9132db9c3833afd12018fecfcdd3243cbf9e5d1b69367864301fe085"
],
[
[

View File

@ -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)) {