Skip to main content

issue_user_session_with_fields_record

Function issue_user_session_with_fields_record 

Source
pub async fn issue_user_session_with_fields_record<S: AuthSchema>(
    ctx: &AuthContext<S>,
    user_id: &str,
    ip_address: Option<String>,
    user_agent: Option<String>,
    fields: SessionOverrides,
) -> Result<IssuedSessionRecord<S>, SessionIssueError>
Expand description

Issue a session with trusted initial fields and retain its adapter output.

This is the retained-record counterpart to issue_user_session_with_fields.

ยงErrors

Propagates validation, storage, ban policy, and configured callback errors.