We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 370c919 commit 5446c7cCopy full SHA for 5446c7c
lib/client.ts
@@ -867,12 +867,19 @@ export class OAuth {
867
nonce?: string,
868
user_id?: string,
869
): Promise<Types.VerifyIDToken> {
870
- return this.http.postForm(`${OAUTH_BASE_PREFIX_V2_1}/verify`, {
+ const body: { [key: string]: string } = {
871
id_token,
872
client_id,
873
- nonce,
874
- user_id,
875
- });
+ };
+
+ if (nonce) {
876
+ body.nonce = nonce;
877
+ }
878
879
+ if (user_id) {
880
+ body.user_id = user_id;
881
882
+ return this.http.postForm(`${OAUTH_BASE_PREFIX_V2_1}/verify`, body);
883
}
884
885
public issueChannelAccessTokenV2_1(
0 commit comments