Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSession = errors.New("no stored auth session")
Functions ¶
This section is empty.
Types ¶
type ClerkClient ¶
type ClerkClient struct {
Issuer string
ClientID string
Audience string
Scopes string
CallbackPort int
HTTPClient *http.Client
}
func (*ClerkClient) RefreshSession ¶
func (*ClerkClient) RevokeRefreshToken ¶
func (c *ClerkClient) RevokeRefreshToken(ctx context.Context, refreshToken string) error
type Session ¶
type Session struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
Scope string `json:"scope"`
ExpiresAt time.Time `json:"expires_at"`
OrganizationID string `json:"organization_id,omitempty"`
KnownOrgIDs []string `json:"known_org_ids,omitempty"`
}
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func NewSessionStore ¶
func NewSessionStore(service string) (*SessionStore, error)
Click to show internal directories.
Click to hide internal directories.