Skip to main content

COOKIE_NAMES

API Docs


Variable: COOKIE_NAMES

const COOKIE_NAMES: object

Defined in: src/utilities/cookieConfig.ts:7

Cookie names used for authentication tokens. These are centralized here to ensure consistency across the codebase.

Type Declaration

ACCESS_TOKEN

readonly ACCESS_TOKEN: "talawa_access_token" = "talawa_access_token"

HTTP-Only cookie containing the short-lived JWT access token.

REFRESH_TOKEN

readonly REFRESH_TOKEN: "talawa_refresh_token" = "talawa_refresh_token"

HTTP-Only cookie containing the refresh token for obtaining new access tokens.