Skip to content

Commit

Permalink
address PR feedback
Browse files Browse the repository at this point in the history
- rename package
- use pointer for URL as it can be null
- remove references to 'session'
  • Loading branch information
PhilippBuschhaus committed Oct 23, 2024
1 parent 8fddf0d commit cdae412
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions sign_in_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package clerk

type SignInToken struct {
APIResource
Object string `json:"object"`
ID string `json:"id"`
Status string `json:"status"`
UserID string `json:"user_id"`
Token string `json:"token,omitempty"`
URL string `json:"url,omitempty"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
Object string `json:"object"`
ID string `json:"id"`
Status string `json:"status"`
UserID string `json:"user_id"`
Token string `json:"token,omitempty"`
URL *string `json:"url,omitempty"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
2 changes: 1 addition & 1 deletion signintokens/api.go → signintoken/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions signintokens/client.go → signintoken/client.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package session provides the Sign In Token API.
package signintokens
// Package signintoken provides the Sign-In Token API.
package signintoken

import (
"context"
Expand All @@ -12,7 +12,7 @@ import (

const path = "/sign_in_tokens"

// Client is used to invoke the sign-in Token API.
// Client is used to invoke the Sign-In Token API.
type Client struct {
Backend clerk.Backend
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package signintokens
package signintoken

import (
"context"
Expand Down

0 comments on commit cdae412

Please sign in to comment.