michielbdejong/solid-panes

View on GitHub
src/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
export interface SolidSession {
  authorization: SolidAuthorization
  credentialType: string
  idClaims: SolidClaim
  idp: string
  issuer: string
  sessionKey: string
  webId: string
}

interface SolidAuthorization {
  // eslint-disable-next-line camelcase
  access_token: string
  // eslint-disable-next-line camelcase
  client_id: string
  // eslint-disable-next-line camelcase
  id_token: string
}

interface SolidClaim {
  // eslint-disable-next-line camelcase
  at_hash: string
  aud: string
  azp: string
  cnf: {
    jwk: string
  }
  exp: number
  iat: number
  iss: string
  jti: string
  nonce: string
  sub: string
}