نشستها¶
وارد کردن یک شخص، و آنچه پروژه دربارهی هر نفر میگوید - طول نشستش، claimهایش، و اینکه هنوز میتواند وارد بماند یا نه.
از خود کد خوانده میشود، پس هیچوقت از آن عقب نمیماند. توضیحها مال خود کد هستند، به انگلیسی.
start_session
¶
Sign person in on response: a new pair, in both cookies.
request, when given, travels with session_started.
issue_tokens
¶
Sign person in for a native client: a new pair, and nothing set.
request, when given, travels with session_started.
Tokens
dataclass
¶
A pair for one person, and how long their session lasts.
mint
¶
A new pair for person, with their claims and their lifetime - and no signal.
lifetime_for
¶
How long a session of person's lasts - the project's answer, or simplejwt's.
add_claims
¶
Put the project's claims about person on token.
may_sign_in
¶
Whether person may still hold a session: active, and whatever the project adds.
person_of
¶
The person refresh was issued to, or None when there is nobody.