├── .eslintrc ├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .nycrc ├── .prettierrc ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README-zh_CN.md ├── README.md ├── eslint.config.js ├── eslint.config.mjs ├── example ├── server.cjs └── simple_server.cjs ├── lib ├── extract.cjs ├── index.cjs └── index.d.ts ├── package.json └── test ├── basic.test.cjs ├── basic_server.cjs ├── complete_token.test.cjs ├── cookies.test.cjs ├── custom_extraction.test.cjs ├── custom_extraction_auth_server.cjs ├── custom_parameters.test.cjs ├── custom_parameters_server.cjs ├── dynamic_header_key.test.cjs ├── dynamic_key.test.cjs ├── dynamic_key_server.cjs ├── error_func.test.cjs ├── error_func_server.cjs ├── headless.test.cjs ├── multi_auth.test.cjs ├── multi_auth_server.cjs ├── multiple_key.test.cjs ├── multiple_key_server.cjs ├── options_payload_validation.cjs ├── options_payload_validation_data.cjs ├── payload.test.cjs ├── payload_auth_server.cjs ├── scheme-payload-server.cjs ├── scheme-payload.test.cjs ├── scheme-response-server.cjs ├── scheme-response.test.cjs ├── scopes.test.cjs ├── scopes_server.cjs ├── try_and_optional_auth_mode.test.cjs ├── url_token.test.cjs ├── validate_func.test.cjs ├── validate_func_server.cjs ├── verify_func.test.cjs └── verify_func_server.cjs /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/.gitignore -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/.nycrc -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/LICENSE -------------------------------------------------------------------------------- /README-zh_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/README-zh_CN.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/eslint.config.js -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /example/server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/example/server.cjs -------------------------------------------------------------------------------- /example/simple_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/example/simple_server.cjs -------------------------------------------------------------------------------- /lib/extract.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/lib/extract.cjs -------------------------------------------------------------------------------- /lib/index.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/lib/index.cjs -------------------------------------------------------------------------------- /lib/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/lib/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/package.json -------------------------------------------------------------------------------- /test/basic.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/basic.test.cjs -------------------------------------------------------------------------------- /test/basic_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/basic_server.cjs -------------------------------------------------------------------------------- /test/complete_token.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/complete_token.test.cjs -------------------------------------------------------------------------------- /test/cookies.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/cookies.test.cjs -------------------------------------------------------------------------------- /test/custom_extraction.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/custom_extraction.test.cjs -------------------------------------------------------------------------------- /test/custom_extraction_auth_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/custom_extraction_auth_server.cjs -------------------------------------------------------------------------------- /test/custom_parameters.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/custom_parameters.test.cjs -------------------------------------------------------------------------------- /test/custom_parameters_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/custom_parameters_server.cjs -------------------------------------------------------------------------------- /test/dynamic_header_key.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/dynamic_header_key.test.cjs -------------------------------------------------------------------------------- /test/dynamic_key.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/dynamic_key.test.cjs -------------------------------------------------------------------------------- /test/dynamic_key_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/dynamic_key_server.cjs -------------------------------------------------------------------------------- /test/error_func.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/error_func.test.cjs -------------------------------------------------------------------------------- /test/error_func_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/error_func_server.cjs -------------------------------------------------------------------------------- /test/headless.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/headless.test.cjs -------------------------------------------------------------------------------- /test/multi_auth.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/multi_auth.test.cjs -------------------------------------------------------------------------------- /test/multi_auth_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/multi_auth_server.cjs -------------------------------------------------------------------------------- /test/multiple_key.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/multiple_key.test.cjs -------------------------------------------------------------------------------- /test/multiple_key_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/multiple_key_server.cjs -------------------------------------------------------------------------------- /test/options_payload_validation.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/options_payload_validation.cjs -------------------------------------------------------------------------------- /test/options_payload_validation_data.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/options_payload_validation_data.cjs -------------------------------------------------------------------------------- /test/payload.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/payload.test.cjs -------------------------------------------------------------------------------- /test/payload_auth_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/payload_auth_server.cjs -------------------------------------------------------------------------------- /test/scheme-payload-server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/scheme-payload-server.cjs -------------------------------------------------------------------------------- /test/scheme-payload.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/scheme-payload.test.cjs -------------------------------------------------------------------------------- /test/scheme-response-server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/scheme-response-server.cjs -------------------------------------------------------------------------------- /test/scheme-response.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/scheme-response.test.cjs -------------------------------------------------------------------------------- /test/scopes.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/scopes.test.cjs -------------------------------------------------------------------------------- /test/scopes_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/scopes_server.cjs -------------------------------------------------------------------------------- /test/try_and_optional_auth_mode.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/try_and_optional_auth_mode.test.cjs -------------------------------------------------------------------------------- /test/url_token.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/url_token.test.cjs -------------------------------------------------------------------------------- /test/validate_func.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/validate_func.test.cjs -------------------------------------------------------------------------------- /test/validate_func_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/validate_func_server.cjs -------------------------------------------------------------------------------- /test/verify_func.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/verify_func.test.cjs -------------------------------------------------------------------------------- /test/verify_func_server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-auth-jwt2/HEAD/test/verify_func_server.cjs --------------------------------------------------------------------------------