Skip to content

Commit

Permalink
sessions.go: Fix typo in tokens url for CreateTokenFromTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
shank03 authored and agis committed Jun 19, 2024
1 parent 3443d01 commit 47cb525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clerk/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (s *SessionsService) Verify(sessionId, token string) (*Session, error) {
}

func (s *SessionsService) CreateTokenFromTemplate(sessionID, templateSlug string) (*SessionToken, error) {
sessionURL := fmt.Sprintf("%s/%s/token/%s", SessionsUrl, sessionID, templateSlug)
sessionURL := fmt.Sprintf("%s/%s/tokens/%s", SessionsUrl, sessionID, templateSlug)
req, _ := s.client.NewRequest("POST", sessionURL)

var sessionToken SessionToken
Expand Down

0 comments on commit 47cb525

Please sign in to comment.