# stdlib
from typing import Optional

# third party
from pydantic import BaseModel


class Token(BaseModel):
    access_token: str
    token_type: str
    metadata: str


class TokenPayload(BaseModel):
    sub: Optional[int] = None

@@ -225,8 +225,32 @@
  = None%0A
+    guest: bool = False%0A

UPDATE TokenPayload pydantic model to support guest flag