Skip to main content

create_session

Function create_session 

Source
pub async fn create_session(pool: &DbPool) -> Result<NewSession, AuthError>
Expand description

Create a new session in the database.

Returns the raw token (to set in the cookie) and the CSRF token.