Compare commits
2 Commits
main
...
31b85ba8bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31b85ba8bb | ||
|
|
b5bc4a74bf |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@resuely/astro-oidc-rp",
|
"name": "@resuely/astro-oidc-rp",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@resuely/astro-oidc-rp",
|
"name": "@resuely/astro-oidc-rp",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jose": "^5.0.0"
|
"jose": "^5.0.0"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@resuely/astro-oidc-rp",
|
"name": "@resuely/astro-oidc-rp",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Astro integration providing OIDC relying-party routes, middleware, and types.",
|
"description": "Astro integration providing OIDC relying-party routes, middleware, and types.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ function inferPostLogoutRedirectUri(
|
|||||||
reqUrl: URL,
|
reqUrl: URL,
|
||||||
): string {
|
): string {
|
||||||
if ("absolute" in options.redirectUri) return options.redirectUri.absolute;
|
if ("absolute" in options.redirectUri) return options.redirectUri.absolute;
|
||||||
// Default to site root
|
const u = new URL(options.routes.callback, reqUrl);
|
||||||
const u = new URL("/", reqUrl);
|
|
||||||
return u.toString();
|
return u.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user