pub async fn issue_user_session<S: AuthSchema>(
ctx: &AuthContext<S>,
user_id: &str,
ip_address: Option<String>,
user_agent: Option<String>,
) -> Result<IssuedSession<S>, SessionIssueError>Expand description
Issue a session for the given user, applying admin-plugin ban semantics when the admin plugin is enabled.
ยงErrors
Returns an error if session hooks reject issuance, the user is banned, or storage fails.