File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -19,30 +19,15 @@ export type ServerGetTokenOptions = {
19
19
* The expiration time for the token in seconds.
20
20
* If provided, the token will expire after the specified number of seconds.
21
21
* Must be a positive integer.
22
- * @example 3600 // Token expires in 1 hour
23
22
*/
24
23
expiresInSeconds ?: number ;
25
24
} ;
25
+
26
26
/**
27
27
* A function that retrieves a session token or JWT template.
28
28
*
29
29
* @param options - Configuration options for token retrieval
30
30
* @returns A promise that resolves to the token string, or null if no session exists
31
- *
32
- * @example
33
- * ```typescript
34
- * // Get the raw session token
35
- * const token = await getToken();
36
- *
37
- * // Get a JWT using a custom template
38
- * const jwt = await getToken({ template: 'my-template' });
39
- *
40
- * // Get a JWT with custom expiration
41
- * const expiredToken = await getToken({
42
- * template: 'my-template',
43
- * expiresInSeconds: 3600
44
- * });
45
- * ```
46
31
*/
47
32
export type ServerGetToken = ( options ?: ServerGetTokenOptions ) => Promise < string | null > ;
48
33
You can’t perform that action at this time.
0 commit comments