chore: added comments to authProviderCheck function in auth/helper.ts
This commit is contained in:
@@ -100,6 +100,12 @@ export const subscriptionContextCookieParser = (rawCookies: string) => {
|
|||||||
|
|
||||||
export class EmptyClassProvider {}
|
export class EmptyClassProvider {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check to see if given auth provider is present in the ALLOWED_AUTH_PROVIDERS env variable
|
||||||
|
*
|
||||||
|
* @param provider Provider we want to check the presence of
|
||||||
|
* @returns Boolean if provider specified is present or not
|
||||||
|
*/
|
||||||
export function authProviderCheck(provider: string) {
|
export function authProviderCheck(provider: string) {
|
||||||
if (!provider) {
|
if (!provider) {
|
||||||
throw new Error(AUTH_PROVIDER_NOT_SPECIFIED);
|
throw new Error(AUTH_PROVIDER_NOT_SPECIFIED);
|
||||||
|
|||||||
Reference in New Issue
Block a user