Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CookiePayload

interface

CookiePayload

description

This type is used to describe an individual cookie instance as forwarded to the frontend runtime. Cookies that are created by the backend runtime are always signed using a auth secret.

Note that the domain property should be equal to the frontend deployment URL, i.e. if website runs at "elevate.app", then the domain must be the same. You can also use wildcard domain names but we recommend that you do that only for development purposes.

example

Using the CookiePayload interface

const payload = {
name: "ELEVATE",
domain: "elevate.dhealth.com",
secret: "AuthSecretUsedToSignCookies",
challenge: "fakeChallenge"
} as CookiePayload;
since

v0.3.0

Hierarchy

  • CookiePayload

Index

Properties

challenge?: string
domain: string
name: string
secret?: string

Generated using TypeDoc