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.
update_login_user_details
Section titled “update_login_user_details”#asyncupdate_login_user_details
Runs update_login_user_details and returns the result.
paramconnection_idstr
Connection ID.
paramlogin_request_idstr
Login request id.
paramuserOptional[Mapping[str, Any]]
User profile fields.
returnsTuple[UpdateLoginUserDetailsResponse, grpc.Call]
Tuple of the response (carrying auth_request_id) and the gRPC call metadata. Use the auth request ID to look up the user’s authentication journey in the auth logs.
response = scalekit_client.auth.update_login_user_details( 'conn_abc123', 'login_xyz789', { 'email': 'john.doe@company.com', 'sub': 'unique_user_id_456', })
# The auth request ID can be used to look up the authentication journey via auth logs.print(response[0].auth_request_id)