-
Notifications
You must be signed in to change notification settings - Fork 8
Token renewal before expiry #21
Copy link
Copy link
Open
Description
The Astarte JWT token is generated only once during the client initialization
| with {:ok, jwt} <- fetch_or_generate_jwt(opts) do |
This token has a default expiry of 5 minutes. If the generated client is used after the token is expired, the client does not renew the token which will make Astarte reply with 403 Forbidden.
Proposed solution:
Validate JWT token expiry before using it. If close to the expiration time, renew the JWT
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels