File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
FirebaseAI/Sources/Types/Internal Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import FirebaseAppCheckInterop
16
16
17
- // TODO: document
17
+ /// Internal helper extension for fetching app check tokens.
18
+ ///
19
+ /// Provides a common means for fetching limited use tokens, and falling back to standard tokens
20
+ /// when it's disabled (or in debug mode). This also centrializes the error, since this method is
21
+ /// used in multiple places.
18
22
extension AppCheckInterop {
19
- // TODO: Document
23
+ /// Fetch the appcheck token.
24
+ ///
25
+ /// - Parameters:
26
+ /// - limitedUse: Should the token be a limited-use token, or a standard token.
27
+ /// - domain: A string dictating where this method is being called from. Used in any thrown
28
+ /// errors, to avoid hard-to-parse traces.
20
29
func fetchAppCheckToken( limitedUse: Bool ,
21
30
domain: String ) async throws -> FIRAppCheckTokenResultInterop {
22
31
if limitedUse {
You can’t perform that action at this time.
0 commit comments