mirror of
https://github.com/Steffo99/festa.git
synced 2024-10-16 15:07:27 +00:00
13 lines
505 B
TypeScript
13 lines
505 B
TypeScript
|
import { createStateContext } from "../hooks/useStateContext";
|
||
|
import * as Telegram from "../utils/telegram"
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Context containing data about the user's current login status:
|
||
|
* - `null` if the user is not logged in
|
||
|
* - an instance of {@link LoginData} if the user is logged in
|
||
|
*
|
||
|
* Please note that the data containing in this context is not validated, and will need to be validated by the server on every request.
|
||
|
*/
|
||
|
export const LoginContext = createStateContext<Telegram.LoginData | null>()
|