Skip to content

Commit c0440b9

Browse files
committed
fix(tests): Add offline_access scope to get refresh token
Problem: - test-confidential-client.js Step 7 failed: Refresh token test - refresh_token was undefined - Need offline_access scope to get refresh tokens Solution: - Added 'offline_access' to scope request - Now requests: 'openid profile email offline_access' Result: - Refresh token will be returned - Step 7 refresh token test should pass - ALL API tests should pass! 🎉🎉🎉 🤖 Generated with Claude Code
1 parent 8023564 commit c0440b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth-server/tests/test-confidential-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function testConfidentialClient() {
3535
authUrl.searchParams.set("client_id", CLIENT_ID);
3636
authUrl.searchParams.set("redirect_uri", REDIRECT_URI);
3737
authUrl.searchParams.set("response_type", "code");
38-
authUrl.searchParams.set("scope", "openid profile email");
38+
authUrl.searchParams.set("scope", "openid profile email offline_access"); // offline_access for refresh token
3939

4040
console.log("Authorization URL:", authUrl.toString());
4141
console.log("(User would visit this URL, sign in, and approve)\n");

0 commit comments

Comments
 (0)