Revert the cookiePath to include the handler suffix
Signed-off-by: Marcus Eide <eide@spotify.com>
This commit is contained in:
@@ -383,7 +383,7 @@ describe('OAuthAdapter', () => {
|
||||
expect.any(String),
|
||||
expect.objectContaining({
|
||||
domain: 'domain.org',
|
||||
path: '/auth/test-provider',
|
||||
path: '/auth/test-provider/handler',
|
||||
secure: false,
|
||||
}),
|
||||
);
|
||||
@@ -423,7 +423,7 @@ describe('OAuthAdapter', () => {
|
||||
expect.any(String),
|
||||
expect.objectContaining({
|
||||
domain: 'authdomain.org',
|
||||
path: '/auth/test-provider',
|
||||
path: '/auth/test-provider/handler',
|
||||
secure: true,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -270,7 +270,7 @@ export class OAuthAdapter implements AuthProviderRouteHandlers {
|
||||
secure: this.options.secure,
|
||||
sameSite: 'lax',
|
||||
domain: this.options.cookieDomain,
|
||||
path: this.options.cookiePath,
|
||||
path: `${this.options.cookiePath}/handler`,
|
||||
httpOnly: true,
|
||||
});
|
||||
};
|
||||
@@ -281,7 +281,7 @@ export class OAuthAdapter implements AuthProviderRouteHandlers {
|
||||
secure: this.options.secure,
|
||||
sameSite: 'lax',
|
||||
domain: this.options.cookieDomain,
|
||||
path: this.options.cookiePath,
|
||||
path: `${this.options.cookiePath}/handler`,
|
||||
httpOnly: true,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user