pub fn authenticate_user(auth_header: &str) -> Result<CurrentUser, Error>
Expand description
Retrieve the user information from a JWT token. Do not include the Bearer
prefix, only the
actual JWT token.
pub fn authenticate_user(auth_header: &str) -> Result<CurrentUser, Error>
Retrieve the user information from a JWT token. Do not include the Bearer
prefix, only the
actual JWT token.