Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default TTL time for access token seems to be wrong #52

Open
hukic-m opened this issue Apr 18, 2024 · 0 comments
Open

Default TTL time for access token seems to be wrong #52

hukic-m opened this issue Apr 18, 2024 · 0 comments

Comments

@hukic-m
Copy link

hukic-m commented Apr 18, 2024

In the docs it says the following
By default, a token expires after 6 hours. You may override this by passing in ttl when creating the token. ttl is expressed in seconds.

But the source code doesn't really support that from what I can see ?
14_400 is 4 hours and not 6 hours ?

In source code of access_token.rb

6 hours in seconds; how long the access token to the server is good for
    DEFAULT_TTL = 14_400

Source code: https://github.com/livekit/server-sdk-ruby/blob/main/lib/livekit/access_token.rb#L8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant