Link Search Menu Expand Document

JWT overview

JSON Web Token

Added in v1.0.0


Table of contents


utils

JWT

Signature

export declare const JWT: t.BrandC<t.StringC, JWTBrand>

Added in v1.0.0

JWT (type alias)

Signature

export type JWT = t.Branded<string, JWTBrand>

Added in v1.0.0

JWTBrand (interface)

Signature

export interface JWTBrand {
  readonly JWT: unique symbol
}

Added in v1.0.0

jwtDecoder

Signature

export declare const jwtDecoder: <S extends string>() => D.Decoder<S, t.Branded<S, JWTBrand>>

Added in v1.1.0