Skip to main content

Module jwt

Module jwt 

Source
Expand description

Turns the JWT key settings into signing and verifying keys and an algorithm.

Every use of the key, format and algorithm settings goes through these conversions. The startup and reload check refuses an empty key and an unknown format, so either fails before the first login, while a key that does not decode fails at login.

Re-exportsยง

use super::JwtConfig; ๐Ÿ”’
use crate::Err; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::err; ๐Ÿ”’
use crate::implement; ๐Ÿ”’
use crate::jwt::Algorithm; ๐Ÿ”’
use crate::jwt::DecodingKey; ๐Ÿ”’
use crate::jwt::EncodingKey; ๐Ÿ”’
use crate::jwt::errors::Error as JwtError; ๐Ÿ”’

Enumsยง

KeyFormat ๐Ÿ”’

Constantsยง

KEY_FORMATS ๐Ÿ”’
Spellings of the format directive, matched without regard to case.

Functionsยง

invalid_key ๐Ÿ”’