Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ExpiresIn, AllTopics, CacheRole, TopicRole, DisposableTokenScope} from '@gomomento/sdk';
import { ExpiresIn, AllTopics, CacheRole, TopicRole, DisposableTokenScope } from '@gomomento/sdk';

/**
* First, set the scope of permissions for your tokens.
Expand Down Expand Up @@ -57,7 +57,7 @@ export const tokenPermissions: DisposableTokenScope = {
* Second, set the TTL for your tokens in terms of seconds, minutes, hours,
* days, or using epoch format.
* This example app generates disposable tokens by default and disposable
* tokens must expire within 1 hour.
* tokens must expire within 25 hours.
* More information here: https://docs.momentohq.com/develop/api-reference/auth-tokens#generatedisposabletoken-api
*/
export const tokenExpiresIn: ExpiresIn = ExpiresIn.hours(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const tokenPermissions: DisposableTokenScope =
* Second, set the TTL for your tokens in terms of seconds, minutes, hours,
* days, or using epoch format.
* This example app generates disposable tokens by default and disposable
* tokens must expire within 1 hour.
* tokens must expire within 25 hours.
* More information here: https://docs.momentohq.com/develop/api-reference/auth-tokens#generatedisposabletoken-api
*/
export const tokenExpiresIn: ExpiresIn = ExpiresIn.minutes(30);
Expand Down
Loading