Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cmd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func isJwtTokenValid(token string) bool {
if err != nil {
return false
}
exp, err := client.Tokens.Validate(token)
exp, err := client.Tokens.Validate()
if err != nil {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion internal/turso/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

type TokensClient client

func (c *TokensClient) Validate(token string) (int64, error) {
func (c *TokensClient) Validate() (int64, error) {
r, err := c.client.Get("/v1/auth/validate", nil)
if err != nil {
return 0, fmt.Errorf("failed to request validation: %s", err)
Expand Down
Loading