Skip to content

Commit c3721bf

Browse files
authored
Merge pull request #417 from tomohirohiratsuka/issue#416
fix: issue#416, change verifyIdToken base prefix
2 parents 2e9500c + de5f5bf commit c3721bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ export class OAuth {
758758
nonce?: string,
759759
user_id?: string,
760760
): Promise<Types.VerifyIDToken> {
761-
return this.http.postForm(`${OAUTH_BASE_PREFIX}/verify`, {
761+
return this.http.postForm(`${OAUTH_BASE_PREFIX_V2_1}/verify`, {
762762
id_token,
763763
client_id,
764764
nonce,

test/client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ describe("oauth", () => {
11201120
const client_id = "test_client_id";
11211121
const nonce = "test_nonce";
11221122
const user_id = "test_user_id";
1123-
const scope = nock(OAUTH_BASE_PREFIX, interceptionOption)
1123+
const scope = nock(OAUTH_BASE_PREFIX_V2_1, interceptionOption)
11241124
.post("/verify", {
11251125
id_token,
11261126
client_id,

0 commit comments

Comments
 (0)