Skip to content
Rishabh Poddar edited this page Apr 21, 2023 · 16 revisions

API blocks:

session

{
   handle: string,
   userId: string,
   userDataInJWT: {...}
}

cookieInfo

{
   token: string,
   expiry: number,
   createdTime: number
}

EmailPassword user

{
   id: string,
   email: string,
   timeJoined: number // this is only in CDI >= 2.5
}

ThirdParty user

{
   id: string,
   timeJoined: number,
   email: string,
   thirdParty: {
      id: string,
      userId: string
   }
}

ThirdPartyEmailPassword user

{
   id: string,
   timeJoined: number,
   email: string,
   thirdParty?: {
      id: string,
      userId: string
   }
}

Passwordless user

{
   id: string,
   timeJoined: number,
   email?: string,
   phoneNumner?: string
}

ThirdPartyPasswordless user

{
   id: string,
   timeJoined: number,
   email?: string,
   phoneNumner?: string
   thirdParty?: {
      id: string,
      userId: string
   }
}