├── .gitignore ├── README.md ├── package.json ├── src ├── Auth.test.ts ├── Auth.ts ├── NhostClient.ts ├── Storage.ts ├── UserSession.ts ├── index.ts ├── test │ ├── .env │ ├── .gitignore │ ├── 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-compose.yaml │ ├── globalSetup.ts │ ├── globalTeardown.ts │ ├── migrations │ │ └── 1_init │ │ │ ├── down.yaml │ │ │ ├── up.sql │ │ │ └── up.yaml │ └── test-utils.ts ├── types.ts └── utils.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/package.json -------------------------------------------------------------------------------- /src/Auth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/Auth.test.ts -------------------------------------------------------------------------------- /src/Auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/Auth.ts -------------------------------------------------------------------------------- /src/NhostClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/NhostClient.ts -------------------------------------------------------------------------------- /src/Storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/Storage.ts -------------------------------------------------------------------------------- /src/UserSession.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/UserSession.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/test/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/.env -------------------------------------------------------------------------------- /src/test/.gitignore: -------------------------------------------------------------------------------- 1 | db_data 2 | -------------------------------------------------------------------------------- /src/test/custom/emails/activate-account/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/custom/emails/activate-account/html.ejs -------------------------------------------------------------------------------- /src/test/custom/emails/activate-account/subject.ejs: -------------------------------------------------------------------------------- 1 | Confirm your email address -------------------------------------------------------------------------------- /src/test/custom/emails/change-email/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/custom/emails/change-email/html.ejs -------------------------------------------------------------------------------- /src/test/custom/emails/change-email/subject.ejs: -------------------------------------------------------------------------------- 1 | Change your email address -------------------------------------------------------------------------------- /src/test/custom/emails/lost-password/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/custom/emails/lost-password/html.ejs -------------------------------------------------------------------------------- /src/test/custom/emails/lost-password/subject.ejs: -------------------------------------------------------------------------------- 1 | Reset your password 2 | -------------------------------------------------------------------------------- /src/test/custom/emails/magic-link/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/custom/emails/magic-link/html.ejs -------------------------------------------------------------------------------- /src/test/custom/emails/magic-link/subject.ejs: -------------------------------------------------------------------------------- 1 | Secure <%= action %> link -------------------------------------------------------------------------------- /src/test/custom/emails/notify-email-change/html.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/custom/emails/notify-email-change/html.ejs -------------------------------------------------------------------------------- /src/test/custom/emails/notify-email-change/subject.ejs: -------------------------------------------------------------------------------- 1 | The email attached to your account has been changed 2 | -------------------------------------------------------------------------------- /src/test/custom/keys/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/custom/storage-rules/rules.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/custom/storage-rules/rules.yaml -------------------------------------------------------------------------------- /src/test/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/docker-compose.yaml -------------------------------------------------------------------------------- /src/test/globalSetup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/globalSetup.ts -------------------------------------------------------------------------------- /src/test/globalTeardown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/globalTeardown.ts -------------------------------------------------------------------------------- /src/test/migrations/1_init/down.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/migrations/1_init/down.yaml -------------------------------------------------------------------------------- /src/test/migrations/1_init/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/migrations/1_init/up.sql -------------------------------------------------------------------------------- /src/test/migrations/1_init/up.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/migrations/1_init/up.yaml -------------------------------------------------------------------------------- /src/test/test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/test/test-utils.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhost/nhost-js-sdk/HEAD/yarn.lock --------------------------------------------------------------------------------