Skip to content

Commit 3485e70

Browse files
committed
Don't bother with id_token in auth flow
Seems to cause weird problems in Auth0s inscrutable SDK, and we don't need it, so just drop it entirely.
1 parent 862dd91 commit 3485e70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/src/auth0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const loginWithPasswordlessCode = withRetries('loginPWL', async (email: s
8585
(await authClient.passwordless.loginWithEmail({
8686
email: email,
8787
code: code,
88-
scope: 'openid email offline_access app_metadata'
88+
scope: 'email offline_access app_metadata'
8989
})).data,
9090
{
9191
shouldThrow: (e) => {

api/test/auth.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AUTH0_PORT, auth0Server, startServer } from "./test-util";
77
const TOKEN_RESPONSE = {
88
"access_token": "at",
99
"refresh_token": "rt",
10-
"scope": "openid email offline_access",
10+
"scope": "email offline_access",
1111
"expires_in": 86400,
1212
"token_type": "Bearer"
1313
};
@@ -104,7 +104,7 @@ describe("API auth endpoints", () => {
104104
expect(await tokenEndpoint.getSeenRequests()).to.have.length(0);
105105
});
106106

107-
it("sends a request to Auth0 to start passwordless auth", async () => {
107+
it("sends a request to Auth0 to complete passwordless auth", async () => {
108108
const email = '[email protected]';
109109
const code = '1234';
110110

@@ -113,7 +113,7 @@ describe("API auth endpoints", () => {
113113
username: email,
114114
realm: 'email',
115115
otp: code,
116-
scope: 'openid email offline_access app_metadata',
116+
scope: 'email offline_access app_metadata',
117117
grant_type: 'http://auth0.com/oauth/grant-type/passwordless/otp'
118118
})
119119
.thenJson(200, TOKEN_RESPONSE);

0 commit comments

Comments
 (0)