Skip to content

add exp to generateBearerToken options#102

Open
jadamduff wants to merge 2 commits intoskyflowapi:mainfrom
jadamduff:user-defined-bearer-token-exp
Open

add exp to generateBearerToken options#102
jadamduff wants to merge 2 commits intoskyflowapi:mainfrom
jadamduff:user-defined-bearer-token-exp

Conversation

@jadamduff
Copy link

@jadamduff jadamduff commented Mar 23, 2023

Hi skyflow team,

This is a PR to enable passing in a custom expiry seconds value to the generateBearerToken function.

If the exp option is set, it will be used to set the exp value on the token with a minimum of 1 second. Otherwise, it will default to 3600 seconds.

Thanks!

@jadamduff jadamduff closed this Mar 23, 2023
@jadamduff jadamduff reopened this Mar 23, 2023
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

Successfully merging this pull request may close these issues.

1 participant