Skip to content

Commit 20f89f0

Browse files
committed
wip
1 parent 1b719a1 commit 20f89f0

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

packages/types/src/ssr.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,15 @@ export type ServerGetTokenOptions = {
1919
* The expiration time for the token in seconds.
2020
* If provided, the token will expire after the specified number of seconds.
2121
* Must be a positive integer.
22-
* @example 3600 // Token expires in 1 hour
2322
*/
2423
expiresInSeconds?: number;
2524
};
25+
2626
/**
2727
* A function that retrieves a session token or JWT template.
2828
*
2929
* @param options - Configuration options for token retrieval
3030
* @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-
* ```
4631
*/
4732
export type ServerGetToken = (options?: ServerGetTokenOptions) => Promise<string | null>;
4833

0 commit comments

Comments
 (0)