update rediexct
This commit is contained in:
@@ -13,13 +13,13 @@ export type User = {
|
||||
refreshToken: string
|
||||
}
|
||||
|
||||
export function createAuth(env) {
|
||||
export function createAuth(env, redirectURI = null) {
|
||||
const authenticator = new Authenticator()
|
||||
const strategy = new OAuth2Strategy(
|
||||
{
|
||||
clientId: env.CLIENT_ID,
|
||||
clientSecret: env.CLIENT_SECRET,
|
||||
redirectURI: env.REDIRECT_URI,
|
||||
redirectURI: redirectURI ?? env.REDIRECT_URI,
|
||||
authorizationEndpoint: `${env.ISSUER_URL}/authorize`,
|
||||
tokenEndpoint: `${env.ISSUER_URL}/token`,
|
||||
tokenRevocationEndpoint: `${env.ISSUER_URL}/revoke`,
|
||||
|
||||
Reference in New Issue
Block a user