├── .gitignore ├── .nowignore ├── .nvmrc ├── .prettierrc ├── Readme.md ├── api ├── delete.ts ├── login.ts ├── logout.ts ├── protected.ts └── register.ts ├── errors └── CustomError.ts ├── jwtSigningKeys.json.encrypted ├── models ├── Token.ts ├── User.helpers.ts ├── User.ts └── db.ts ├── now.json ├── package.json ├── tsconfig.json ├── tslint.json └── utils ├── Either.ts ├── Maybe.ts ├── crypt.ts ├── match.ts └── types.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/.gitignore -------------------------------------------------------------------------------- /.nowignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/.nowignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/fermium 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/.prettierrc -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/Readme.md -------------------------------------------------------------------------------- /api/delete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/api/delete.ts -------------------------------------------------------------------------------- /api/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/api/login.ts -------------------------------------------------------------------------------- /api/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/api/logout.ts -------------------------------------------------------------------------------- /api/protected.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/api/protected.ts -------------------------------------------------------------------------------- /api/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/api/register.ts -------------------------------------------------------------------------------- /errors/CustomError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/errors/CustomError.ts -------------------------------------------------------------------------------- /jwtSigningKeys.json.encrypted: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/jwtSigningKeys.json.encrypted -------------------------------------------------------------------------------- /models/Token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/models/Token.ts -------------------------------------------------------------------------------- /models/User.helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/models/User.helpers.ts -------------------------------------------------------------------------------- /models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/models/User.ts -------------------------------------------------------------------------------- /models/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/models/db.ts -------------------------------------------------------------------------------- /now.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/now.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/package.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/tslint.json -------------------------------------------------------------------------------- /utils/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/utils/Either.ts -------------------------------------------------------------------------------- /utils/Maybe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/utils/Maybe.ts -------------------------------------------------------------------------------- /utils/crypt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/utils/crypt.ts -------------------------------------------------------------------------------- /utils/match.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/utils/match.ts -------------------------------------------------------------------------------- /utils/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusdeux/jwt-example/HEAD/utils/types.ts --------------------------------------------------------------------------------