├── .dockerignore ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── build.yml │ └── documentation.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.js ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── custom ├── emails │ ├── activate-account │ │ ├── html.ejs │ │ └── subject.ejs │ ├── change-email │ │ ├── html.ejs │ │ └── subject.ejs │ ├── lost-password │ │ ├── html.ejs │ │ └── subject.ejs │ ├── magic-link │ │ ├── html.ejs │ │ └── subject.ejs │ └── notify-email-change │ │ ├── html.ejs │ │ └── subject.ejs ├── keys │ └── .gitkeep └── storage-rules │ └── rules.yaml ├── docker ├── dev │ ├── .gitignore │ ├── Dockerfile │ └── docker-compose-example.yaml ├── prod │ └── Dockerfile └── test │ └── docker-compose-test.yaml ├── docs ├── .gitignore ├── .prettierrc.js ├── README.md ├── babel.config.js ├── docs │ ├── api-reference.md │ ├── emails.md │ ├── environment-variables.md │ ├── getting-started │ │ ├── configuration.md │ │ └── setup.md │ ├── intro.md │ ├── oauth-providers.md │ └── storage-rules.md ├── docusaurus.config.js ├── package.json ├── sidebars.js ├── src │ ├── components │ │ ├── HomepageFeatures.js │ │ └── HomepageFeatures.module.css │ ├── css │ │ └── custom.css │ └── pages │ │ ├── index.js │ │ ├── index.module.css │ │ └── markdown-page.md ├── static │ ├── .nojekyll │ └── img │ │ ├── authentication.svg │ │ ├── docusaurus.png │ │ ├── favicon.ico │ │ ├── logo.png │ │ ├── logo.svg │ │ ├── programming.svg │ │ ├── storage.svg │ │ └── tutorial │ │ ├── docsVersionDropdown.png │ │ └── localeDropdown.png ├── tsconfig.json └── yarn.lock ├── jest.config.js ├── migrations └── 00001_create-initial-tables.sql ├── package.json ├── prod-paths.js ├── src ├── errors.ts ├── limiter.ts ├── middlewares │ └── auth.ts ├── routes │ ├── auth │ │ ├── activate.ts │ │ ├── auth.test.ts │ │ ├── change-email │ │ │ ├── direct-change.ts │ │ │ ├── email.test.ts │ │ │ ├── index.ts │ │ │ ├── request-verification.ts │ │ │ ├── utils.ts │ │ │ └── verify-and-change.ts │ │ ├── change-password │ │ │ ├── change.test.ts │ │ │ ├── change.ts │ │ │ ├── index.ts │ │ │ ├── lost.test.ts │ │ │ ├── lost.ts │ │ │ └── reset.ts │ │ ├── delete.ts │ │ ├── index.ts │ │ ├── jwks.ts │ │ ├── login.ts │ │ ├── logout.ts │ │ ├── magic-link.ts │ │ ├── mfa │ │ │ ├── disable.ts │ │ │ ├── enable.ts │ │ │ ├── generate.ts │ │ │ ├── index.ts │ │ │ ├── mfa.test.ts │ │ │ └── totp.ts │ │ ├── providers │ │ │ ├── apple.ts │ │ │ ├── facebook.ts │ │ │ ├── github.ts │ │ │ ├── google.ts │ │ │ ├── index.ts │ │ │ ├── linkedin.ts │ │ │ ├── spotify.ts │ │ │ ├── twitter.ts │ │ │ ├── utils.ts │ │ │ └── windowslive.ts │ │ ├── register.ts │ │ └── token │ │ │ ├── index.ts │ │ │ ├── refresh.ts │ │ │ ├── revoke.ts │ │ │ └── token.test.ts │ ├── index.ts │ └── storage │ │ ├── delete.ts │ │ ├── get.ts │ │ ├── index.ts │ │ ├── list.ts │ │ ├── list_get.ts │ │ ├── storage.test.ts │ │ ├── upload.ts │ │ └── utils.ts ├── server.ts ├── shared │ ├── config │ │ ├── application.ts │ │ ├── authentication │ │ │ ├── cookies.ts │ │ │ ├── index.ts │ │ │ ├── jwt.ts │ │ │ ├── mfa.ts │ │ │ ├── providers.ts │ │ │ └── registration.ts │ │ ├── headers.ts │ │ ├── index.ts │ │ ├── storage.ts │ │ └── utils.ts │ ├── cookies.ts │ ├── email.ts │ ├── helpers.ts │ ├── jwt.ts │ ├── metadata.ts │ ├── migrations.ts │ ├── queries.ts │ ├── request.ts │ ├── s3.ts │ ├── types.ts │ └── validation.ts ├── start.ts ├── test │ ├── global-setup.ts │ ├── server.ts │ ├── setup.ts │ ├── supertest-shared-utils.ts │ └── utils.ts ├── ts-start.ts └── types │ ├── @nicokaiser │ └── passport-apple.d.ts │ ├── notevil.d.ts │ ├── passport-generic-oauth.d.ts │ └── passport-windowslive.d.ts ├── test-mocks ├── example.jpg └── migrations │ └── 1585679214182_custom_user_column │ ├── down.sql │ └── up.sql ├── tsconfig.json └── yarn.lock /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | *.js 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/documentation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.github/workflows/documentation.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist 2 | coverage -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/README.md -------------------------------------------------------------------------------- /custom/emails/activate-account/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/custom/emails/activate-account/html.ejs -------------------------------------------------------------------------------- /custom/emails/activate-account/subject.ejs: -------------------------------------------------------------------------------- 1 | Confirm your email address -------------------------------------------------------------------------------- /custom/emails/change-email/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/custom/emails/change-email/html.ejs -------------------------------------------------------------------------------- /custom/emails/change-email/subject.ejs: -------------------------------------------------------------------------------- 1 | Change your email address -------------------------------------------------------------------------------- /custom/emails/lost-password/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/custom/emails/lost-password/html.ejs -------------------------------------------------------------------------------- /custom/emails/lost-password/subject.ejs: -------------------------------------------------------------------------------- 1 | Reset your password 2 | -------------------------------------------------------------------------------- /custom/emails/magic-link/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/custom/emails/magic-link/html.ejs -------------------------------------------------------------------------------- /custom/emails/magic-link/subject.ejs: -------------------------------------------------------------------------------- 1 | Secure <%= action %> link -------------------------------------------------------------------------------- /custom/emails/notify-email-change/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/custom/emails/notify-email-change/html.ejs -------------------------------------------------------------------------------- /custom/emails/notify-email-change/subject.ejs: -------------------------------------------------------------------------------- 1 | The email attached to your account has been changed 2 | -------------------------------------------------------------------------------- /custom/keys/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /custom/storage-rules/rules.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/custom/storage-rules/rules.yaml -------------------------------------------------------------------------------- /docker/dev/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docker/dev/.gitignore -------------------------------------------------------------------------------- /docker/dev/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docker/dev/Dockerfile -------------------------------------------------------------------------------- /docker/dev/docker-compose-example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docker/dev/docker-compose-example.yaml -------------------------------------------------------------------------------- /docker/prod/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docker/prod/Dockerfile -------------------------------------------------------------------------------- /docker/test/docker-compose-test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docker/test/docker-compose-test.yaml -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/.gitignore -------------------------------------------------------------------------------- /docs/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/babel.config.js -------------------------------------------------------------------------------- /docs/docs/api-reference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/api-reference.md -------------------------------------------------------------------------------- /docs/docs/emails.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/emails.md -------------------------------------------------------------------------------- /docs/docs/environment-variables.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/environment-variables.md -------------------------------------------------------------------------------- /docs/docs/getting-started/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/getting-started/configuration.md -------------------------------------------------------------------------------- /docs/docs/getting-started/setup.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/getting-started/setup.md -------------------------------------------------------------------------------- /docs/docs/intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/intro.md -------------------------------------------------------------------------------- /docs/docs/oauth-providers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/oauth-providers.md -------------------------------------------------------------------------------- /docs/docs/storage-rules.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docs/storage-rules.md -------------------------------------------------------------------------------- /docs/docusaurus.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/docusaurus.config.js -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/package.json -------------------------------------------------------------------------------- /docs/sidebars.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/sidebars.js -------------------------------------------------------------------------------- /docs/src/components/HomepageFeatures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/src/components/HomepageFeatures.js -------------------------------------------------------------------------------- /docs/src/components/HomepageFeatures.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/src/components/HomepageFeatures.module.css -------------------------------------------------------------------------------- /docs/src/css/custom.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/src/css/custom.css -------------------------------------------------------------------------------- /docs/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/src/pages/index.js -------------------------------------------------------------------------------- /docs/src/pages/index.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/src/pages/index.module.css -------------------------------------------------------------------------------- /docs/src/pages/markdown-page.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/src/pages/markdown-page.md -------------------------------------------------------------------------------- /docs/static/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/img/authentication.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/authentication.svg -------------------------------------------------------------------------------- /docs/static/img/docusaurus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/docusaurus.png -------------------------------------------------------------------------------- /docs/static/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/favicon.ico -------------------------------------------------------------------------------- /docs/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/logo.png -------------------------------------------------------------------------------- /docs/static/img/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/logo.svg -------------------------------------------------------------------------------- /docs/static/img/programming.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/programming.svg -------------------------------------------------------------------------------- /docs/static/img/storage.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/storage.svg -------------------------------------------------------------------------------- /docs/static/img/tutorial/docsVersionDropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/tutorial/docsVersionDropdown.png -------------------------------------------------------------------------------- /docs/static/img/tutorial/localeDropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/static/img/tutorial/localeDropdown.png -------------------------------------------------------------------------------- /docs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/tsconfig.json -------------------------------------------------------------------------------- /docs/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/docs/yarn.lock -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/jest.config.js -------------------------------------------------------------------------------- /migrations/00001_create-initial-tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/migrations/00001_create-initial-tables.sql -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/package.json -------------------------------------------------------------------------------- /prod-paths.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/prod-paths.js -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/limiter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/limiter.ts -------------------------------------------------------------------------------- /src/middlewares/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/middlewares/auth.ts -------------------------------------------------------------------------------- /src/routes/auth/activate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/activate.ts -------------------------------------------------------------------------------- /src/routes/auth/auth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/auth.test.ts -------------------------------------------------------------------------------- /src/routes/auth/change-email/direct-change.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-email/direct-change.ts -------------------------------------------------------------------------------- /src/routes/auth/change-email/email.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-email/email.test.ts -------------------------------------------------------------------------------- /src/routes/auth/change-email/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-email/index.ts -------------------------------------------------------------------------------- /src/routes/auth/change-email/request-verification.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-email/request-verification.ts -------------------------------------------------------------------------------- /src/routes/auth/change-email/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-email/utils.ts -------------------------------------------------------------------------------- /src/routes/auth/change-email/verify-and-change.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-email/verify-and-change.ts -------------------------------------------------------------------------------- /src/routes/auth/change-password/change.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-password/change.test.ts -------------------------------------------------------------------------------- /src/routes/auth/change-password/change.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-password/change.ts -------------------------------------------------------------------------------- /src/routes/auth/change-password/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-password/index.ts -------------------------------------------------------------------------------- /src/routes/auth/change-password/lost.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-password/lost.test.ts -------------------------------------------------------------------------------- /src/routes/auth/change-password/lost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-password/lost.ts -------------------------------------------------------------------------------- /src/routes/auth/change-password/reset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/change-password/reset.ts -------------------------------------------------------------------------------- /src/routes/auth/delete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/delete.ts -------------------------------------------------------------------------------- /src/routes/auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/index.ts -------------------------------------------------------------------------------- /src/routes/auth/jwks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/jwks.ts -------------------------------------------------------------------------------- /src/routes/auth/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/login.ts -------------------------------------------------------------------------------- /src/routes/auth/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/logout.ts -------------------------------------------------------------------------------- /src/routes/auth/magic-link.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/magic-link.ts -------------------------------------------------------------------------------- /src/routes/auth/mfa/disable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/mfa/disable.ts -------------------------------------------------------------------------------- /src/routes/auth/mfa/enable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/mfa/enable.ts -------------------------------------------------------------------------------- /src/routes/auth/mfa/generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/mfa/generate.ts -------------------------------------------------------------------------------- /src/routes/auth/mfa/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/mfa/index.ts -------------------------------------------------------------------------------- /src/routes/auth/mfa/mfa.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/mfa/mfa.test.ts -------------------------------------------------------------------------------- /src/routes/auth/mfa/totp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/mfa/totp.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/apple.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/apple.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/facebook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/facebook.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/github.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/github.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/google.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/google.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/index.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/linkedin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/linkedin.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/spotify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/spotify.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/twitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/twitter.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/utils.ts -------------------------------------------------------------------------------- /src/routes/auth/providers/windowslive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/providers/windowslive.ts -------------------------------------------------------------------------------- /src/routes/auth/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/register.ts -------------------------------------------------------------------------------- /src/routes/auth/token/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/token/index.ts -------------------------------------------------------------------------------- /src/routes/auth/token/refresh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/token/refresh.ts -------------------------------------------------------------------------------- /src/routes/auth/token/revoke.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/token/revoke.ts -------------------------------------------------------------------------------- /src/routes/auth/token/token.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/auth/token/token.test.ts -------------------------------------------------------------------------------- /src/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/index.ts -------------------------------------------------------------------------------- /src/routes/storage/delete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/delete.ts -------------------------------------------------------------------------------- /src/routes/storage/get.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/get.ts -------------------------------------------------------------------------------- /src/routes/storage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/index.ts -------------------------------------------------------------------------------- /src/routes/storage/list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/list.ts -------------------------------------------------------------------------------- /src/routes/storage/list_get.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/list_get.ts -------------------------------------------------------------------------------- /src/routes/storage/storage.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/storage.test.ts -------------------------------------------------------------------------------- /src/routes/storage/upload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/upload.ts -------------------------------------------------------------------------------- /src/routes/storage/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/routes/storage/utils.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/shared/config/application.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/application.ts -------------------------------------------------------------------------------- /src/shared/config/authentication/cookies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/authentication/cookies.ts -------------------------------------------------------------------------------- /src/shared/config/authentication/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/authentication/index.ts -------------------------------------------------------------------------------- /src/shared/config/authentication/jwt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/authentication/jwt.ts -------------------------------------------------------------------------------- /src/shared/config/authentication/mfa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/authentication/mfa.ts -------------------------------------------------------------------------------- /src/shared/config/authentication/providers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/authentication/providers.ts -------------------------------------------------------------------------------- /src/shared/config/authentication/registration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/authentication/registration.ts -------------------------------------------------------------------------------- /src/shared/config/headers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/headers.ts -------------------------------------------------------------------------------- /src/shared/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/index.ts -------------------------------------------------------------------------------- /src/shared/config/storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/storage.ts -------------------------------------------------------------------------------- /src/shared/config/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/config/utils.ts -------------------------------------------------------------------------------- /src/shared/cookies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/cookies.ts -------------------------------------------------------------------------------- /src/shared/email.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/email.ts -------------------------------------------------------------------------------- /src/shared/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/helpers.ts -------------------------------------------------------------------------------- /src/shared/jwt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/jwt.ts -------------------------------------------------------------------------------- /src/shared/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/metadata.ts -------------------------------------------------------------------------------- /src/shared/migrations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/migrations.ts -------------------------------------------------------------------------------- /src/shared/queries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/queries.ts -------------------------------------------------------------------------------- /src/shared/request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/request.ts -------------------------------------------------------------------------------- /src/shared/s3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/s3.ts -------------------------------------------------------------------------------- /src/shared/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/types.ts -------------------------------------------------------------------------------- /src/shared/validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/shared/validation.ts -------------------------------------------------------------------------------- /src/start.ts: -------------------------------------------------------------------------------- 1 | require('module-alias/register') 2 | import './ts-start' 3 | -------------------------------------------------------------------------------- /src/test/global-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/test/global-setup.ts -------------------------------------------------------------------------------- /src/test/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/test/server.ts -------------------------------------------------------------------------------- /src/test/setup.ts: -------------------------------------------------------------------------------- 1 | jest.spyOn(global.console, 'error').mockImplementation(() => jest.fn()); 2 | -------------------------------------------------------------------------------- /src/test/supertest-shared-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/test/supertest-shared-utils.ts -------------------------------------------------------------------------------- /src/test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/test/utils.ts -------------------------------------------------------------------------------- /src/ts-start.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/ts-start.ts -------------------------------------------------------------------------------- /src/types/@nicokaiser/passport-apple.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/types/@nicokaiser/passport-apple.d.ts -------------------------------------------------------------------------------- /src/types/notevil.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/types/notevil.d.ts -------------------------------------------------------------------------------- /src/types/passport-generic-oauth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/types/passport-generic-oauth.d.ts -------------------------------------------------------------------------------- /src/types/passport-windowslive.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/src/types/passport-windowslive.d.ts -------------------------------------------------------------------------------- /test-mocks/example.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/test-mocks/example.jpg -------------------------------------------------------------------------------- /test-mocks/migrations/1585679214182_custom_user_column/down.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE "public"."users" DROP COLUMN "name"; -------------------------------------------------------------------------------- /test-mocks/migrations/1585679214182_custom_user_column/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/test-mocks/migrations/1585679214182_custom_user_column/up.sql -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/hasura-backend-plus/HEAD/yarn.lock --------------------------------------------------------------------------------