Skip to content

Token expiration not handled automatically in long-running services (Cron jobs) #10

Description

@francescobianco

Token expiration not handled automatically in long-running services (Cron jobs)

Description
In long-running Go services (cron workers), token expires and SDK does not refresh automatically.

Code snippet

apiClient := client.NewClient(token)

for {
    _, err := apiClient.Request(ctx, "GET", baseURL, "/advance", nil, nil)
    time.Sleep(time.Hour)
}

Expected behavior
Automatic token refresh or helper utility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions