Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResetParams ¶
type ResetParams struct { // Password: The password of the user Password string `json:"password,omitempty"` // SessionToken: The `session_token` associated with a User's existing Session. SessionToken string `json:"session_token,omitempty"` // SessionJWT: The `session_jwt` associated with a User's existing Session. SessionJWT string `json:"session_jwt,omitempty"` }
ResetParams: Request type for `Sessions.Reset`.
type ResetResponse ¶
type ResetResponse struct { // RequestID: Globally unique UUID that is returned with every API call. This value is important to log for // debugging purposes; we may ask for this value to help identify a specific API call when helping you // debug an issue. RequestID string `json:"request_id,omitempty"` // UserID: The unique ID of the affected User. UserID string `json:"user_id,omitempty"` // User: The `user` object affected by this API call. See the // [Get user endpoint](https://stytch.com/docs/api/get-user) for complete response field details. User users.User `json:"user,omitempty"` // StatusCode: The HTTP status code of the response. Stytch follows standard HTTP response status code // patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX // are server errors. StatusCode int32 `json:"status_code,omitempty"` // Session: If you initiate a Session, by including `session_duration_minutes` in your authenticate call, // you'll receive a full Session object in the response. // // See [GET sessions](https://stytch.com/docs/api/session-get) for complete response fields. // Session sessions.Session `json:"session,omitempty"` }
ResetResponse: Response type for `Sessions.Reset`.
Click to show internal directories.
Click to hide internal directories.