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 4090f74 commit cd665f0Copy full SHA for cd665f0
test/integration/app-check.spec.ts
@@ -53,6 +53,20 @@ describe('admin.appCheck', () => {
53
expect(token).to.have.keys(['token', 'ttlMillis']);
54
expect(token.token).to.be.a('string').and.to.not.be.empty;
55
expect(token.ttlMillis).to.be.a('number');
56
+ expect(token.ttlMillis).to.equals(3600000);
57
+ });
58
59
+
60
+ it('should succeed with a valid token and a custom ttl', function() {
61
+ if (!appId) {
62
+ this.skip();
63
+ }
64
+ return admin.appCheck().createToken(appId as string, { ttlMillis: 1800000 })
65
+ .then((token) => {
66
+ expect(token).to.have.keys(['token', 'ttlMillis']);
67
+ expect(token.token).to.be.a('string').and.to.not.be.empty;
68
+ expect(token.ttlMillis).to.be.a('number');
69
+ expect(token.ttlMillis).to.equals(1800000);
70
});
71
72
0 commit comments