JWT
Pydantic model
- pydantic model iperon.contrib.jwt.JWT
Show JSON schema
{ "title": "JWT", "type": "object", "properties": { "exp": { "title": "Exp", "default": "2022-03-03T20:58:19.426973", "type": "string", "format": "date-time" }, "iat": { "title": "Iat", "default": "2022-03-03T20:58:19.426976", "type": "string", "format": "date-time" }, "payload": { "title": "Payload", "default": {}, "type": "object" }, "expires": { "title": "Expires", "default": 3600, "type": "integer" }, "algorithm": { "default": "HS256", "allOf": [ { "$ref": "#/definitions/Algorithm" } ] } }, "definitions": { "Algorithm": { "title": "Algorithm", "description": "Algorithm selection", "enum": [ "HS256", "HS384", "HS512" ] } } }
- Fields
- field algorithm: iperon.contrib.jwt.Algorithm = Algorithm.HS256
- field exp: datetime.datetime = datetime.datetime(2022, 3, 3, 20, 58, 19, 426973)
- field iat: datetime.datetime = datetime.datetime(2022, 3, 3, 20, 58, 19, 426976)
- classmethod decode(jwt_token: str, algorithm: iperon.contrib.jwt.Algorithm = Algorithm.HS256, verify_signature: bool = True) iperon.contrib.jwt.JWT
Decodes a JWT string into an object