@stytch/vanilla-js 0.0.2-0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.ts +69 -3
- package/dist/index.esm.d.ts +69 -3
- package/dist/index.esm.js +5251 -1
- package/dist/index.headless.d.ts +13 -0
- package/dist/index.headless.esm.d.ts +13 -0
- package/dist/index.headless.esm.js +5415 -4
- package/dist/index.headless.js +5425 -4
- package/dist/index.js +5251 -1
- package/package.json +18 -8
package/dist/index.headless.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { IHeadlessCryptoWalletClient, IHeadlessMagicLinksClient, IHeadlessOAuthClient, IHeadlessOTPsClient, IHeadlessPasswordClient, IHeadlessSessionClient, IHeadlessUserClient, IHeadlessTOTPClient, IHeadlessWebAuthnClient } from "@stytch/core/public";
|
|
2
|
+
/**
|
|
3
|
+
* A headless client used for invoking the Stytch API.
|
|
4
|
+
* The Stytch Headless Client can be used as a drop-in solution for authentication and session management.
|
|
5
|
+
* Full documentation can be found {@link https://stytch.com/docs/sdks/javascript-sdk online}.
|
|
6
|
+
* @example
|
|
7
|
+
* const stytch = new StytchHeadlessClient('public-token-<find yours in the stytch dashboard>');
|
|
8
|
+
* stytch.magicLinks.email.loginOrCreate('sandbox@stytch.com', {
|
|
9
|
+
* login_magic_link_url: 'https://example.com/authenticate',
|
|
10
|
+
* login_expiration_minutes: 60,
|
|
11
|
+
* signup_magic_link_url: 'https://example.com/authenticate',
|
|
12
|
+
* signup_expiration_minutes: 60,
|
|
13
|
+
* });
|
|
14
|
+
*/
|
|
2
15
|
declare class StytchHeadlessClient {
|
|
3
16
|
private readonly _subscriptionService;
|
|
4
17
|
private readonly _sessionManager;
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { IHeadlessCryptoWalletClient, IHeadlessMagicLinksClient, IHeadlessOAuthClient, IHeadlessOTPsClient, IHeadlessPasswordClient, IHeadlessSessionClient, IHeadlessUserClient, IHeadlessTOTPClient, IHeadlessWebAuthnClient } from "@stytch/core/public";
|
|
2
|
+
/**
|
|
3
|
+
* A headless client used for invoking the Stytch API.
|
|
4
|
+
* The Stytch Headless Client can be used as a drop-in solution for authentication and session management.
|
|
5
|
+
* Full documentation can be found {@link https://stytch.com/docs/sdks/javascript-sdk online}.
|
|
6
|
+
* @example
|
|
7
|
+
* const stytch = new StytchHeadlessClient('public-token-<find yours in the stytch dashboard>');
|
|
8
|
+
* stytch.magicLinks.email.loginOrCreate('sandbox@stytch.com', {
|
|
9
|
+
* login_magic_link_url: 'https://example.com/authenticate',
|
|
10
|
+
* login_expiration_minutes: 60,
|
|
11
|
+
* signup_magic_link_url: 'https://example.com/authenticate',
|
|
12
|
+
* signup_expiration_minutes: 60,
|
|
13
|
+
* });
|
|
14
|
+
*/
|
|
2
15
|
declare class StytchHeadlessClient {
|
|
3
16
|
private readonly _subscriptionService;
|
|
4
17
|
private readonly _sessionManager;
|