File tree 4 files changed +15
-1
lines changed
4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ export namespace appCheck {
62
62
export type AppCheckTokenOptions = AppCheckTokenOptions ;
63
63
// Warning: (ae-forgotten-export) The symbol "DecodedAppCheckToken" needs to be exported by the entry point default-namespace.d.ts
64
64
export type DecodedAppCheckToken = DecodedAppCheckToken ;
65
+ // Warning: (ae-forgotten-export) The symbol "VerifyAppCheckTokenOptions" needs to be exported by the entry point default-namespace.d.ts
66
+ //
67
+ // (undocumented)
68
+ export type VerifyAppCheckTokenOptions = VerifyAppCheckTokenOptions ;
65
69
// Warning: (ae-forgotten-export) The symbol "VerifyAppCheckTokenResponse" needs to be exported by the entry point default-namespace.d.ts
66
70
export type VerifyAppCheckTokenResponse = VerifyAppCheckTokenResponse ;
67
71
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class AppCheck {
15
15
// (undocumented)
16
16
readonly app: App ;
17
17
createToken(appId : string , options ? : AppCheckTokenOptions ): Promise <AppCheckToken >;
18
- verifyToken(appCheckToken : string ): Promise <VerifyAppCheckTokenResponse >;
18
+ verifyToken(appCheckToken : string , options ? : VerifyAppCheckTokenOptions ): Promise <VerifyAppCheckTokenResponse >;
19
19
}
20
20
21
21
// @public
@@ -33,6 +33,7 @@ export interface AppCheckTokenOptions {
33
33
export interface DecodedAppCheckToken {
34
34
// (undocumented)
35
35
[key : string ]: any ;
36
+ already_consumed? : boolean ;
36
37
app_id: string ;
37
38
aud: string [];
38
39
exp: number ;
@@ -44,6 +45,11 @@ export interface DecodedAppCheckToken {
44
45
// @public
45
46
export function getAppCheck(app ? : App ): AppCheck ;
46
47
48
+ // @public
49
+ export interface VerifyAppCheckTokenOptions {
50
+ consume? : boolean ;
51
+ }
52
+
47
53
// @public
48
54
export interface VerifyAppCheckTokenResponse {
49
55
appId: string ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
19
19
AppCheckToken as TAppCheckToken ,
20
20
AppCheckTokenOptions as TAppCheckTokenOptions ,
21
21
DecodedAppCheckToken as TDecodedAppCheckToken ,
22
+ VerifyAppCheckTokenOptions as TVerifyAppCheckTokenOptions ,
22
23
VerifyAppCheckTokenResponse as TVerifyAppCheckTokenResponse ,
23
24
} from './app-check-api' ;
24
25
import { AppCheck as TAppCheck } from './app-check' ;
@@ -74,4 +75,6 @@ export namespace appCheck {
74
75
export type VerifyAppCheckTokenResponse = TVerifyAppCheckTokenResponse ;
75
76
76
77
export type AppCheckTokenOptions = TAppCheckTokenOptions ;
78
+
79
+ export type VerifyAppCheckTokenOptions = TVerifyAppCheckTokenOptions ;
77
80
}
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export {
29
29
AppCheckToken ,
30
30
AppCheckTokenOptions ,
31
31
DecodedAppCheckToken ,
32
+ VerifyAppCheckTokenOptions ,
32
33
VerifyAppCheckTokenResponse ,
33
34
} from './app-check-api' ;
34
35
export { AppCheck } from './app-check' ;
You can’t perform that action at this time.
0 commit comments