Skip to content

Commit 43b7ec9

Browse files
committed
feat: read post-login redirect URL from environment variable
1 parent 3996bcd commit 43b7ec9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ ZITADEL_CLIENT_SECRET=""
8787
# MUST exactly match a Redirect URI configured in your ZITADEL application.
8888
ZITADEL_CALLBACK_URL="http://localhost:3000/auth/callback/zitadel"
8989
90-
# The internal URL within your application where users are sent after a
91-
# successful login is processed at the callback URL.
90+
# Optional. URL where users are redirected after successful login.
9291
# Defaults to "/profile" if not specified.
9392
ZITADEL_POST_LOGIN_URL="/profile"
9493

test/setup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export default async () => {
1010
process.env.ZITADEL_CLIENT_SECRET = 'test-client-secret';
1111
process.env.ZITADEL_CALLBACK_URL = 'http://localhost:3000/auth/callback';
1212
process.env.ZITADEL_POST_LOGIN_URL = '/profile';
13-
process.env.ZITADEL_POST_LOGOUT_URL = 'http://localhost:3000';
13+
process.env.ZITADEL_POST_LOGOUT_URL =
14+
'http://localhost:3000/auth/logout/callback';
1415
};

0 commit comments

Comments
 (0)