We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f39bb commit cc5561aCopy full SHA for cc5561a
web/test/api.test.js
@@ -65,6 +65,11 @@ describe("getGlobusConsentURL", function () {
65
requested_scopes,
66
query_params: "{}",
67
});
68
+
69
+ // Check that state exists and matches the format generated by generateState
70
+ expect(options.data.state).to.be.a("string");
71
+ expect(options.data.state).to.match(/^[0-9a-f]{32}$/); // 16 bytes -> 32 hex chars
72
73
options.success({ consent_url: "http://example.com" });
74
75
0 commit comments