Skip to content

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

@francescobianco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions