From bb501e77140de98592ea3aef03401964e555dfc2 Mon Sep 17 00:00:00 2001 From: LULU Date: Thu, 11 Jan 2024 10:08:08 +0100 Subject: [PATCH] update docs with new config (#132) * update docs with new config * fix * formatting --------- Co-authored-by: lulu --- docs/pages/authentication/auth0.mdx | 71 ++++++-------- docs/pages/authentication/azureoidc.mdx | 118 ++++++++++++------------ docs/pages/authentication/facebook.mdx | 81 ++++++++-------- docs/pages/authentication/firebase.mdx | 51 +++++----- docs/pages/authentication/google.mdx | 81 ++++++++-------- docs/pages/authentication/linkedin.mdx | 81 ++++++++-------- docs/pages/authentication/oauth2.mdx | 87 +++++++++-------- 7 files changed, 272 insertions(+), 298 deletions(-) diff --git a/docs/pages/authentication/auth0.mdx b/docs/pages/authentication/auth0.mdx index 3f5be9bf..df5c6738 100644 --- a/docs/pages/authentication/auth0.mdx +++ b/docs/pages/authentication/auth0.mdx @@ -32,50 +32,35 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `auth0` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - // strict: "all", // or "none" or "store" or "admin" - auth0: { - clientID: Auth0ClientId, - clientSecret: Auth0ClientSecret, - auth0Domain: Auth0Domain, - - admin: { - callbackUrl:`${BACKEND_URL}/admin/auth/auth0/cb`, - failureRedirect: `${ADMIN_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${ADMIN_URL}/`, - - // authPath: '/admin/auth/auth0', - // authCallbackPath: '/admin/auth/auth0/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, extraParams, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - callbackUrl:`${BACKEND_URL}/store/auth/auth0/cb`, - failureRedirect: `${STORE_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${STORE_URL}/`, - - // authPath: '/store/auth/auth0', - // authCallbackPath: '/store/auth/auth0/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, extraParams, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "auth0", + // strict: "all", // or "none" or "store" or "admin" + strict: "none", + identifier: "auth0", + clientID: Auth0ClientId, + clientSecret: Auth0ClientSecret, + auth0Domain: Auth0Domain, + admin: { + callbackUrl: `${BACKEND_URL}/admin/auth/auth0/cb`, + failureRedirect: `${ADMIN_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${ADMIN_URL}/` + }, + store: { + callbackUrl: `${BACKEND_URL}/store/auth/auth0/cb`, + failureRedirect: `${STORE_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${STORE_URL}/` } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values diff --git a/docs/pages/authentication/azureoidc.mdx b/docs/pages/authentication/azureoidc.mdx index e88b323f..e8a12102 100644 --- a/docs/pages/authentication/azureoidc.mdx +++ b/docs/pages/authentication/azureoidc.mdx @@ -33,66 +33,66 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `azure_oidc` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - azure_oidc: { - // strict: "all", // or "none" or "store" or "admin" - admin: { - identityMetadata: AzureIdentityMetadata, - clientID: AzureClientId, - clientSecret: AzureClientSecret, - allowHttpForRedirectUrl: true, //localhost only! - callbackUrl:`${BACKEND_URL}/admin/auth/azure/cb`, - failureRedirect: `${ADMIN_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${ADMIN_URL}/`, - - // responseType: ResposeType.Code - // responseMode: ResponseMode.Query - // allowHttpForRedirectUrl: false - // validateIssuer: true - // isB2C: false - // issuer: null - // authPath: '/admin/auth/azure', - // authCallbackPath: '/admin/auth/azure/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - identityMetadata: AzureIdentityMetadata, - clientID: AzureClientId, - clientSecret: AzureClientSecret, - allowHttpForRedirectUrl: true, //localhost only! - callbackUrl:`${BACKEND_URL}/store/auth/azure/cb`, - failureRedirect: `${STORE_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${STORE_URL}/`, - - // responseType: ResposeType.Code - // responseMode: ResponseMode.Query - // allowHttpForRedirectUrl: false - // validateIssuer: true - // isB2C: false - // issuer: null - // authPath: '/store/auth/azure', - // authCallbackPath: '/store/auth/azure/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "azure_oidc", + // strict: "all", // or "none" or "store" or "admin" + strict: "none", + identifier: "azure_oidc", + admin: { + identityMetadata: AzureIdentityMetadata, + clientID: AzureClientId, + clientSecret: AzureClientSecret, + allowHttpForRedirectUrl: true, + // localhost only! + callbackUrl: `${BACKEND_URL}/admin/auth/azure/cb`, + failureRedirect: `${ADMIN_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${ADMIN_URL}/` + // responseType: ResposeType.Code + // responseMode: ResponseMode.Query + // allowHttpForRedirectUrl: false + // validateIssuer: true + // isB2C: false + // issuer: null + // authPath: '/admin/auth/azure', + // authCallbackPath: '/admin/auth/azure/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, profile, strict) => { + // // implement your custom verify callback here if you need it + // } + }, + store: { + identityMetadata: AzureIdentityMetadata, + clientID: AzureClientId, + clientSecret: AzureClientSecret, + allowHttpForRedirectUrl: true, + // localhost only! + callbackUrl: `${BACKEND_URL}/store/auth/azure/cb`, + failureRedirect: `${STORE_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${STORE_URL}/` + // responseType: ResposeType.Code + // responseMode: ResponseMode.Query + // allowHttpForRedirectUrl: false + // validateIssuer: true + // isB2C: false + // issuer: null + // authPath: '/store/auth/azure', + // authCallbackPath: '/store/auth/azure/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, profile, strict) => { + // // implement your custom verify callback here if you need it + // } } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values diff --git a/docs/pages/authentication/facebook.mdx b/docs/pages/authentication/facebook.mdx index 79674946..f996331c 100644 --- a/docs/pages/authentication/facebook.mdx +++ b/docs/pages/authentication/facebook.mdx @@ -31,49 +31,46 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `facebook` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - // strict: "all", // or "none" or "store" or "admin" - facebook: { - clientID: FacebookClientId, - clientSecret: FacebookClientSecret, - - admin: { - callbackUrl:`${BACKEND_URL}/admin/auth/facebook/cb`, - failureRedirect: `${ADMIN_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${ADMIN_URL}/`, - - // authPath: '/admin/auth/facebook', - // authCallbackPath: '/admin/auth/facebook/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - callbackUrl:`${BACKEND_URL}/store/auth/facebook/cb`, - failureRedirect: `${STORE_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${STORE_URL}/`, - - // authPath: '/store/auth/facebook', - // authCallbackPath: '/store/auth/facebook/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "facebook", + // strict: "all", // or "none" or "store" or "admin" + strict: "none", + identifier: "facebook", + clientID: FacebookClientId, + clientSecret: FacebookClientSecret, + admin: { + callbackUrl: `${BACKEND_URL}/admin/auth/facebook/cb`, + failureRedirect: `${ADMIN_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${ADMIN_URL}/` + // authPath: '/admin/auth/facebook', + // authCallbackPath: '/admin/auth/facebook/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // } + }, + store: { + callbackUrl: `${BACKEND_URL}/store/auth/facebook/cb`, + failureRedirect: `${STORE_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${STORE_URL}/` + // authPath: '/store/auth/facebook', + // authCallbackPath: '/store/auth/facebook/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // } } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values diff --git a/docs/pages/authentication/firebase.mdx b/docs/pages/authentication/firebase.mdx index 2529fcc6..54e9bcbd 100644 --- a/docs/pages/authentication/firebase.mdx +++ b/docs/pages/authentication/firebase.mdx @@ -30,32 +30,33 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `firebase` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - // strict: "all", // or "none" or "store" or "admin" - firebase: { - credentialJsonPath: CredentialJsonPath, - - admin: { - // authPath: '/admin/auth/firebase', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, decodedToken, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - // authPath: '/store/auth/firebase', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, decodedToken, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "firebase", + // strict: "all", // or "none" or "store" or "admin" + strict: "none", + identifier: "firebase", + credentialJsonPath: CredentialJsonPath, + admin: { + // authPath: '/admin/auth/firebase', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, decodedToken, strict) => { + // // implement your custom verify callback here if you need it + // } + }, + store: { + // authPath: '/store/auth/firebase', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, decodedToken, strict) => { + // // implement your custom verify callback here if you need it + // } } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values diff --git a/docs/pages/authentication/google.mdx b/docs/pages/authentication/google.mdx index 18f059fa..e4f17abf 100644 --- a/docs/pages/authentication/google.mdx +++ b/docs/pages/authentication/google.mdx @@ -31,49 +31,46 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `google` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - // strict: "all", // or "none" or "store" or "admin" - google: { - clientID: GoogleClientId, - clientSecret: GoogleClientSecret, - - admin: { - callbackUrl:`${BACKEND_URL}/admin/auth/google/cb`, - failureRedirect: `${ADMIN_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${ADMIN_URL}/`, - - // authPath: '/admin/auth/google', - // authCallbackPath: '/admin/auth/google/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - callbackUrl:`${BACKEND_URL}/store/auth/google/cb`, - failureRedirect: `${STORE_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${STORE_URL}/`, - - // authPath: '/store/auth/google', - // authCallbackPath: '/store/auth/google/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "google", + // strict: "all", // or "none" or "store" or "admin" + strict: "none", + identifier: "google", + clientID: GoogleClientId, + clientSecret: GoogleClientSecret, + admin: { + callbackUrl: `${BACKEND_URL}/admin/auth/google/cb`, + failureRedirect: `${ADMIN_URL}/login`, + // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${ADMIN_URL}/` + // authPath: '/admin/auth/google', + // authCallbackPath: '/admin/auth/google/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // }, + }, + store: { + callbackUrl: `${BACKEND_URL}/store/auth/google/cb`, + failureRedirect: `${STORE_URL}/login`, + // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${STORE_URL}/` + // authPath: '/store/auth/google', + // authCallbackPath: '/store/auth/google/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // }, } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values diff --git a/docs/pages/authentication/linkedin.mdx b/docs/pages/authentication/linkedin.mdx index 87cb8165..caff58c2 100644 --- a/docs/pages/authentication/linkedin.mdx +++ b/docs/pages/authentication/linkedin.mdx @@ -31,49 +31,46 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `linkedin` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - // strict: "all", // or "none" or "store" or "admin" - linkedin: { - clientID: LinkedinClientId, - clientSecret: LinkedinClientSecret, - - admin: { - callbackUrl:`${BACKEND_URL}/admin/auth/linkedin/cb`, - failureRedirect: `${ADMIN_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${ADMIN_URL}/`, - - // authPath: '/admin/auth/linkedin', - // authCallbackPath: '/admin/auth/linkedin/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - callbackUrl:`${BACKEND_URL}/store/auth/linkedin/cb`, - failureRedirect: `${STORE_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${STORE_URL}/`, - - // authPath: '/store/auth/linkedin', - // authCallbackPath: '/store/auth/linkedin/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "linkedin", + // strict: "all", // or "none" or "store" or "admin" + strict: "none", + identifier: "linkedin", + clientID: LinkedinClientId, + clientSecret: LinkedinClientSecret, + admin: { + callbackUrl: `${BACKEND_URL}/admin/auth/linkedin/cb`, + failureRedirect: `${ADMIN_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${ADMIN_URL}/` + // authPath: '/admin/auth/linkedin', + // authCallbackPath: '/admin/auth/linkedin/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // } + }, + store: { + callbackUrl: `${BACKEND_URL}/store/auth/linkedin/cb`, + failureRedirect: `${STORE_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${STORE_URL}/` + // authPath: '/store/auth/linkedin', + // authCallbackPath: '/store/auth/linkedin/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // } } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values diff --git a/docs/pages/authentication/oauth2.mdx b/docs/pages/authentication/oauth2.mdx index 22b7635b..0ef483b4 100644 --- a/docs/pages/authentication/oauth2.mdx +++ b/docs/pages/authentication/oauth2.mdx @@ -34,52 +34,49 @@ newly added plugins. To do so here are the steps Then in your `plugins` collections, if you did not already inserted the plugin, add the following otherwise, you can just add the `oauth2` options to your auth plugin options ```js - { - resolve: "medusa-plugin-auth", - /** @type {import('medusa-plugin-auth').AuthOptions} */ - options: { - strict: "all", // or "none" or "store" or "admin" - oauth2: { - authorizationURL: OAuth2AuthorizationURL, - tokenURL: OAuth2TokenURL, - clientID: OAuth2ClientId, - clientSecret: OAuth2ClientSecret, - scope: OAuth2Scope.split(","), - - admin: { - callbackUrl:`${BACKEND_URL}/admin/auth/oauth2/cb`, - failureRedirect: `${ADMIN_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${ADMIN_URL}/`, - - // authPath: '/admin/auth/oauth2', - // authCallbackPath: '/admin/auth/oauth2/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - }, - - store: { - callbackUrl:`${BACKEND_URL}/store/auth/oauth2/cb`, - failureRedirect: `${STORE_URL}/login`, - - // The success redirect can be overriden from the client by adding a query param `?redirectTo=your_url` to the auth url - // This query param will have the priority over this configuration - successRedirect: `${STORE_URL}/`, - - // authPath: '/store/auth/oauth2', - // authCallbackPath: '/store/auth/oauth2/cb', - // expiresIn: 24 * 60 * 60 * 1000, - // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { - // // implement your custom verify callback here if you need it - // } - } - } + { + resolve: "medusa-plugin-auth", + /** @type {import('medusa-plugin-auth').AuthOptions} */ + options: [ + { + type: "oauth2", + strict: "all", + // or "none" or "store" or "admin" + identifier: "oauth2", + authorizationURL: OAuth2AuthorizationURL, + tokenURL: OAuth2TokenURL, + clientID: OAuth2ClientId, + clientSecret: OAuth2ClientSecret, + scope: OAuth2Scope.split(","), + admin: { + callbackUrl: `${BACKEND_URL}/admin/auth/oauth2/cb`, + failureRedirect: `${ADMIN_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${ADMIN_URL}/` + // authPath: '/admin/auth/oauth2', + // authCallbackPath: '/admin/auth/oauth2/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // } + }, + store: { + callbackUrl: `${BACKEND_URL}/store/auth/oauth2/cb`, + failureRedirect: `${STORE_URL}/login`, + // The success redirect can be overridden from the client by adding a query param `?redirectTo=your_url` to the auth url + // This query param will have the priority over this configuration + successRedirect: `${STORE_URL}/` + // authPath: '/store/auth/oauth2', + // authCallbackPath: '/store/auth/oauth2/cb', + // expiresIn: 24 * 60 * 60 * 1000, + // verifyCallback: (container, req, accessToken, refreshToken, profile, strict) => { + // // implement your custom verify callback here if you need it + // } } - } + } + ] + } ``` The options that are commented are `optional` and the value that you see are the default values