Authorization
Authorization helpers for protected resources
Use auth helpers for authorization code exchange, token validation, and related login token flows on the Scalekit client.
These methods sit next to session management—use them when implementing hosted login callbacks and token checks.
UpdateLoginUserDetails
Section titled “UpdateLoginUserDetails”#UpdateLoginUserDetails
Runs UpdateLoginUserDetails and returns the result.
paramctxcontext.Context
Request context
paramreqUpdateLoginUserDetailsRequest
Req.
returns(*UpdateLoginUserDetailsResponse, error)
Response carrying the auth request ID (resp.GetAuthRequestId()), plus an error.
req := &scalekit.UpdateLoginUserDetailsRequest{ ConnectionId: "conn_123", LoginRequestId: "login_req_123", User: &scalekit.LoggedInUserDetails{ Sub: "sub", Email: "user@example.com", },}
resp, err := scalekitClient.Auth().UpdateLoginUserDetails(ctx, req)if err != nil { // handle the error, then stop return}// resp is non-nil only on success_ = resp.GetAuthRequestId()