@crossmint/client-sdk-auth 1.2.48 → 1.2.50
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/dist/CrossmintAuthClient.cjs +1 -1
- package/dist/CrossmintAuthClient.d.cts +4 -0
- package/dist/CrossmintAuthClient.d.ts +4 -0
- package/dist/CrossmintAuthClient.js +1 -1
- package/dist/{chunk-T452RAYE.cjs → chunk-BFLBVDHY.cjs} +1 -1
- package/dist/{chunk-ZNK3TMZN.js → chunk-JNKRUIWD.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFLBVDHYcjs = require('./chunk-BFLBVDHY.cjs');require('./chunk-3JC3QYTV.cjs');require('./chunk-NZ2DAY24.cjs');require('./chunk-VDJHVTKI.cjs');require('./chunk-TEI6NKFC.cjs');require('./chunk-NYYORERK.cjs');require('./chunk-CK4JCQY6.cjs');exports.CrossmintAuthClient = _chunkBFLBVDHYcjs.a;
|
|
@@ -25,6 +25,10 @@ declare class CrossmintAuthClient extends CrossmintAuth {
|
|
|
25
25
|
}): Promise<any>;
|
|
26
26
|
sendEmailOtp(email: string): Promise<any>;
|
|
27
27
|
confirmEmailOtp(email: string, emailId: string, token: string): Promise<any>;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Farcaster authentication is deprecated and will be removed in a future release.
|
|
30
|
+
* Please migrate to an alternative login method.
|
|
31
|
+
*/
|
|
28
32
|
signInWithFarcaster(data: UseSignInData): Promise<any>;
|
|
29
33
|
signInWithSmartWallet(address: string, type: "evm" | "solana"): Promise<any>;
|
|
30
34
|
authenticateSmartWallet(address: string, type: "evm" | "solana", signature: string): Promise<any>;
|
|
@@ -25,6 +25,10 @@ declare class CrossmintAuthClient extends CrossmintAuth {
|
|
|
25
25
|
}): Promise<any>;
|
|
26
26
|
sendEmailOtp(email: string): Promise<any>;
|
|
27
27
|
confirmEmailOtp(email: string, emailId: string, token: string): Promise<any>;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Farcaster authentication is deprecated and will be removed in a future release.
|
|
30
|
+
* Please migrate to an alternative login method.
|
|
31
|
+
*/
|
|
28
32
|
signInWithFarcaster(data: UseSignInData): Promise<any>;
|
|
29
33
|
signInWithSmartWallet(address: string, type: "evm" | "solana"): Promise<any>;
|
|
30
34
|
authenticateSmartWallet(address: string, type: "evm" | "solana", signature: string): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-JNKRUIWD.js";import"./chunk-BGZBK7AT.js";import"./chunk-REIMEXVF.js";import"./chunk-NIH25R3L.js";import"./chunk-M64WCXMK.js";import"./chunk-HU56N5SW.js";import"./chunk-22GIA4MK.js";export{a as CrossmintAuthClient};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNZ2DAY24cjs = require('./chunk-NZ2DAY24.cjs');var _chunkVDJHVTKIcjs = require('./chunk-VDJHVTKI.cjs');var _chunkTEI6NKFCcjs = require('./chunk-TEI6NKFC.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var _commonsdkauth = require('@crossmint/common-sdk-auth');var _clientsdkbase = require('@crossmint/client-sdk-base');var p=!1,
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNZ2DAY24cjs = require('./chunk-NZ2DAY24.cjs');var _chunkVDJHVTKIcjs = require('./chunk-VDJHVTKI.cjs');var _chunkTEI6NKFCcjs = require('./chunk-TEI6NKFC.cjs');var _chunkCK4JCQY6cjs = require('./chunk-CK4JCQY6.cjs');var _commonsdkauth = require('@crossmint/common-sdk-auth');var _clientsdkbase = require('@crossmint/client-sdk-base');var p=!1,y= exports.a =class P extends _commonsdkauth.CrossmintAuth{constructor(a,t,e={}){var r,s,i;super(a,t,e);this.refreshTask=null;this.refreshPromise=null;this.callbacks=(r=e.callbacks)!=null?r:{},this.logoutRoute=(s=e.logoutRoute)!=null?s:null,this.storageProvider=(i=e.storageProvider)!=null?i:_chunkTEI6NKFCcjs.b.call(void 0, )}static from(a,t={}){let e=new P(a,_commonsdkauth.CrossmintAuth.defaultApiClient(a),t);return typeof window!="undefined"&&(p||(p=!0,setTimeout(()=>{e.handleRefreshAuthMaterial().catch(r=>{console.debug("Initial auth refresh failed:",r)}).finally(()=>{p=!1})},0))),e}getUser(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var a;try{let t=yield this.apiClient.get(`api/${_commonsdkauth.CROSSMINT_API_VERSION}/sdk/auth/user`,{headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error((a=JSON.parse(yield t.text()))==null?void 0:a.message);return yield t.json()}catch(t){throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Failed to fetch user: ${t instanceof Error?t.message:"Unknown error"}`)}})}storeAuthMaterial(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){let t=_chunkVDJHVTKIcjs.a.call(void 0, a.jwt);if(t==null)throw new Error("Invalid JWT");let e=new Date(t*1e3).toISOString();yield Promise.all([this.storageProvider.set(_commonsdkauth.SESSION_PREFIX,a.jwt,e),this.storageProvider.set(_commonsdkauth.REFRESH_TOKEN_PREFIX,a.refreshToken.secret,a.refreshToken.expiresAt)])})}logout(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var t,e;let a=yield this.storageProvider.get(_commonsdkauth.REFRESH_TOKEN_PREFIX);yield Promise.all([this.storageProvider.remove(_commonsdkauth.REFRESH_TOKEN_PREFIX),this.storageProvider.remove(_commonsdkauth.SESSION_PREFIX)]),(e=(t=this.callbacks).onLogout)==null||e.call(t);try{this.logoutRoute!=null?yield this.logoutFromCustomRoute():a!=null&&(yield this.logoutFromDefaultRoute(a))}catch(r){console.error(r)}})}handleRefreshAuthMaterial(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var t,e;try{let r=a!=null?a:yield this.storageProvider.get(_commonsdkauth.REFRESH_TOKEN_PREFIX);if(r==null&&this.refreshRoute==null)return yield this.logout(),null;this.refreshPromise==null&&(this.refreshPromise=this.refreshAuthMaterial(r));let s=yield this.refreshPromise;return this.refreshRoute==null&&(yield this.storeAuthMaterial(s)),(e=(t=this.callbacks).onTokenRefresh)==null||e.call(t,s),this.scheduleNextRefresh(s.jwt),s}catch(r){return console.error(r),yield this.logout(),null}finally{this.refreshPromise=null}})}getOAuthUrl(a,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var e;try{let r=new URLSearchParams;(t==null?void 0:t.appSchema)!=null&&r.set("appSchema",t.appSchema);let s=r.toString(),i=`${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/social/${a}/start${s?`?${s}`:""}`,h=yield this.apiClient.get(i,{headers:{"Content-Type":"application/json"}});if(!h.ok)throw new Error((e=JSON.parse(yield h.text()))==null?void 0:e.message);return(yield h.json()).oauthUrl}catch(r){if(console.error(`Failed to get OAuth URL for provider ${a}: ${r instanceof Error?r.message:"Unknown error"}`),r instanceof Error&&r.message.includes("Request from origin")){let s=r.message.match(/origin "([^"]+)"/),i=s==null?void 0:s[1];if(i)throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Unauthorized origin: ${i}. Please add this origin to your API key's authorized origins in the Crossmint Console.`)}throw new (0, _commonsdkauth.CrossmintAuthenticationError)("Unable to load oauth providers. Please try again later.")}})}sendEmailOtp(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var t;try{let e=yield this.apiClient.post(`${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/otps/send`,{headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a})});if(!e.ok)throw new Error((t=JSON.parse(yield e.text()))==null?void 0:t.message);return yield e.json()}catch(e){throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Failed to send email OTP: ${e instanceof Error?e.message:"Unknown error"}`)}})}confirmEmailOtp(a,t,e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var r;try{let s=new URLSearchParams({email:a,signinAuthenticationMethod:"email",token:e,locale:"en",state:t,callbackUrl:`${this.apiClient.baseUrl}/${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/callback`}),i=yield this.apiClient.post(`${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/authenticate?${s}`,{headers:{"Content-Type":"application/json"}});if(!i.ok)throw new Error((r=JSON.parse(yield i.text()))==null?void 0:r.message);return(yield i.json()).oneTimeSecret}catch(s){throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Failed to confirm email OTP: ${s instanceof Error?s.message:"Unknown error"}`)}})}signInWithFarcaster(a){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var t;console.warn("[DEPRECATED] signInWithFarcaster is deprecated and will be removed in a future release. Please migrate to an alternative login method.");try{let e=new URLSearchParams({signinAuthenticationMethod:"farcaster",callbackUrl:`${this.apiClient.baseUrl}/${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/callback`}),r=yield this.apiClient.post(`${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/authenticate?${e}`,{headers:{"Content-Type":"application/json"},body:JSON.stringify(_chunkCK4JCQY6cjs.b.call(void 0, _chunkCK4JCQY6cjs.a.call(void 0, {},a),{domain:a.signatureParams.domain,redirect:!0,callbackUrl:`${this.apiClient.baseUrl}/${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/callback`}))});if(!r.ok)throw new Error((t=JSON.parse(yield r.text()))==null?void 0:t.message);return(yield r.json()).oneTimeSecret}catch(e){throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Failed to sign in with Farcaster: ${e instanceof Error?e.message:"Unknown error"}`)}})}signInWithSmartWallet(a,t){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var e;try{let r=t==="evm"?"ethereum":"solana",s=yield this.apiClient.post(`${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/crypto_wallets/authenticate/start`,{headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:a,walletType:r})});if(!s.ok)throw new Error((e=JSON.parse(yield s.text()))==null?void 0:e.message);return yield s.json()}catch(r){throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Failed to initiate smart wallet sign in: ${r instanceof Error?r.message:"Unknown error"}`)}})}authenticateSmartWallet(a,t,e){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){var r;try{let s=new URLSearchParams({signinAuthenticationMethod:t,callbackUrl:`${this.apiClient.baseUrl}/${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/callback`}),i=yield this.apiClient.post(`${_commonsdkauth.AUTH_SDK_ROOT_ENDPOINT}/crypto_wallets/authenticate?${s}`,{headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:a,signature:e})});if(!i.ok)throw new Error((r=JSON.parse(yield i.text()))==null?void 0:r.message);return yield i.json()}catch(s){throw new (0, _commonsdkauth.CrossmintAuthenticationError)(`Failed to authenticate smart wallet: ${s instanceof Error?s.message:"Unknown error"}`)}})}logoutFromCustomRoute(){return _chunkCK4JCQY6cjs.c.call(void 0, this,null,function*(){if(!this.logoutRoute)throw new Error("Custom logout route is not set");return yield fetch(this.logoutRoute,{method:"POST"})})}scheduleNextRefresh(a){let t=_chunkVDJHVTKIcjs.a.call(void 0, a);if(t==null)throw new Error("Invalid JWT");let e=Date.now()/1e3,r=t-e-120;if(r>0){let s=Date.now()+r*1e3;this.cancelScheduledRefresh(),this.refreshTask=_clientsdkbase.queueTask.call(void 0, ()=>this.handleRefreshAuthMaterial(),s)}}cancelScheduledRefresh(){this.refreshTask&&(this.refreshTask.cancel(),this.refreshTask=null)}};exports.a = y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-REIMEXVF.js";import{a as u}from"./chunk-NIH25R3L.js";import{b as d}from"./chunk-M64WCXMK.js";import{a as m,b as w,c as o}from"./chunk-22GIA4MK.js";import{AUTH_SDK_ROOT_ENDPOINT as n,CROSSMINT_API_VERSION as k,CrossmintAuth as f,CrossmintAuthenticationError as l,REFRESH_TOKEN_PREFIX as c,SESSION_PREFIX as
|
|
1
|
+
import{a as g}from"./chunk-REIMEXVF.js";import{a as u}from"./chunk-NIH25R3L.js";import{b as d}from"./chunk-M64WCXMK.js";import{a as m,b as w,c as o}from"./chunk-22GIA4MK.js";import{AUTH_SDK_ROOT_ENDPOINT as n,CROSSMINT_API_VERSION as k,CrossmintAuth as f,CrossmintAuthenticationError as l,REFRESH_TOKEN_PREFIX as c,SESSION_PREFIX as C}from"@crossmint/common-sdk-auth";import{queueTask as b}from"@crossmint/client-sdk-base";var p=!1,y=class P extends f{constructor(a,t,e={}){var r,s,i;super(a,t,e);this.refreshTask=null;this.refreshPromise=null;this.callbacks=(r=e.callbacks)!=null?r:{},this.logoutRoute=(s=e.logoutRoute)!=null?s:null,this.storageProvider=(i=e.storageProvider)!=null?i:d()}static from(a,t={}){let e=new P(a,f.defaultApiClient(a),t);return typeof window!="undefined"&&(p||(p=!0,setTimeout(()=>{e.handleRefreshAuthMaterial().catch(r=>{console.debug("Initial auth refresh failed:",r)}).finally(()=>{p=!1})},0))),e}getUser(){return o(this,null,function*(){var a;try{let t=yield this.apiClient.get(`api/${k}/sdk/auth/user`,{headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error((a=JSON.parse(yield t.text()))==null?void 0:a.message);return yield t.json()}catch(t){throw new l(`Failed to fetch user: ${t instanceof Error?t.message:"Unknown error"}`)}})}storeAuthMaterial(a){return o(this,null,function*(){let t=u(a.jwt);if(t==null)throw new Error("Invalid JWT");let e=new Date(t*1e3).toISOString();yield Promise.all([this.storageProvider.set(C,a.jwt,e),this.storageProvider.set(c,a.refreshToken.secret,a.refreshToken.expiresAt)])})}logout(){return o(this,null,function*(){var t,e;let a=yield this.storageProvider.get(c);yield Promise.all([this.storageProvider.remove(c),this.storageProvider.remove(C)]),(e=(t=this.callbacks).onLogout)==null||e.call(t);try{this.logoutRoute!=null?yield this.logoutFromCustomRoute():a!=null&&(yield this.logoutFromDefaultRoute(a))}catch(r){console.error(r)}})}handleRefreshAuthMaterial(a){return o(this,null,function*(){var t,e;try{let r=a!=null?a:yield this.storageProvider.get(c);if(r==null&&this.refreshRoute==null)return yield this.logout(),null;this.refreshPromise==null&&(this.refreshPromise=this.refreshAuthMaterial(r));let s=yield this.refreshPromise;return this.refreshRoute==null&&(yield this.storeAuthMaterial(s)),(e=(t=this.callbacks).onTokenRefresh)==null||e.call(t,s),this.scheduleNextRefresh(s.jwt),s}catch(r){return console.error(r),yield this.logout(),null}finally{this.refreshPromise=null}})}getOAuthUrl(a,t){return o(this,null,function*(){var e;try{let r=new URLSearchParams;(t==null?void 0:t.appSchema)!=null&&r.set("appSchema",t.appSchema);let s=r.toString(),i=`${n}/social/${a}/start${s?`?${s}`:""}`,h=yield this.apiClient.get(i,{headers:{"Content-Type":"application/json"}});if(!h.ok)throw new Error((e=JSON.parse(yield h.text()))==null?void 0:e.message);return(yield h.json()).oauthUrl}catch(r){if(console.error(`Failed to get OAuth URL for provider ${a}: ${r instanceof Error?r.message:"Unknown error"}`),r instanceof Error&&r.message.includes("Request from origin")){let s=r.message.match(/origin "([^"]+)"/),i=s==null?void 0:s[1];if(i)throw new l(`Unauthorized origin: ${i}. Please add this origin to your API key's authorized origins in the Crossmint Console.`)}throw new l("Unable to load oauth providers. Please try again later.")}})}sendEmailOtp(a){return o(this,null,function*(){var t;try{let e=yield this.apiClient.post(`${n}/otps/send`,{headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a})});if(!e.ok)throw new Error((t=JSON.parse(yield e.text()))==null?void 0:t.message);return yield e.json()}catch(e){throw new l(`Failed to send email OTP: ${e instanceof Error?e.message:"Unknown error"}`)}})}confirmEmailOtp(a,t,e){return o(this,null,function*(){var r;try{let s=new URLSearchParams({email:a,signinAuthenticationMethod:"email",token:e,locale:"en",state:t,callbackUrl:`${this.apiClient.baseUrl}/${n}/callback`}),i=yield this.apiClient.post(`${n}/authenticate?${s}`,{headers:{"Content-Type":"application/json"}});if(!i.ok)throw new Error((r=JSON.parse(yield i.text()))==null?void 0:r.message);return(yield i.json()).oneTimeSecret}catch(s){throw new l(`Failed to confirm email OTP: ${s instanceof Error?s.message:"Unknown error"}`)}})}signInWithFarcaster(a){return o(this,null,function*(){var t;console.warn("[DEPRECATED] signInWithFarcaster is deprecated and will be removed in a future release. Please migrate to an alternative login method.");try{let e=new URLSearchParams({signinAuthenticationMethod:"farcaster",callbackUrl:`${this.apiClient.baseUrl}/${n}/callback`}),r=yield this.apiClient.post(`${n}/authenticate?${e}`,{headers:{"Content-Type":"application/json"},body:JSON.stringify(w(m({},a),{domain:a.signatureParams.domain,redirect:!0,callbackUrl:`${this.apiClient.baseUrl}/${n}/callback`}))});if(!r.ok)throw new Error((t=JSON.parse(yield r.text()))==null?void 0:t.message);return(yield r.json()).oneTimeSecret}catch(e){throw new l(`Failed to sign in with Farcaster: ${e instanceof Error?e.message:"Unknown error"}`)}})}signInWithSmartWallet(a,t){return o(this,null,function*(){var e;try{let r=t==="evm"?"ethereum":"solana",s=yield this.apiClient.post(`${n}/crypto_wallets/authenticate/start`,{headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:a,walletType:r})});if(!s.ok)throw new Error((e=JSON.parse(yield s.text()))==null?void 0:e.message);return yield s.json()}catch(r){throw new l(`Failed to initiate smart wallet sign in: ${r instanceof Error?r.message:"Unknown error"}`)}})}authenticateSmartWallet(a,t,e){return o(this,null,function*(){var r;try{let s=new URLSearchParams({signinAuthenticationMethod:t,callbackUrl:`${this.apiClient.baseUrl}/${n}/callback`}),i=yield this.apiClient.post(`${n}/crypto_wallets/authenticate?${s}`,{headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:a,signature:e})});if(!i.ok)throw new Error((r=JSON.parse(yield i.text()))==null?void 0:r.message);return yield i.json()}catch(s){throw new l(`Failed to authenticate smart wallet: ${s instanceof Error?s.message:"Unknown error"}`)}})}logoutFromCustomRoute(){return o(this,null,function*(){if(!this.logoutRoute)throw new Error("Custom logout route is not set");return yield fetch(this.logoutRoute,{method:"POST"})})}scheduleNextRefresh(a){let t=u(a);if(t==null)throw new Error("Invalid JWT");let e=Date.now()/1e3,r=t-e-120;if(r>0){let s=Date.now()+r*1e3;this.cancelScheduledRefresh(),this.refreshTask=b(()=>this.handleRefreshAuthMaterial(),s)}}cancelScheduledRefresh(){this.refreshTask&&(this.refreshTask.cancel(),this.refreshTask=null)}};export{y as a};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFLBVDHYcjs = require('./chunk-BFLBVDHY.cjs');require('./chunk-3JC3QYTV.cjs');var _chunkNZ2DAY24cjs = require('./chunk-NZ2DAY24.cjs');var _chunkVDJHVTKIcjs = require('./chunk-VDJHVTKI.cjs');var _chunkTEI6NKFCcjs = require('./chunk-TEI6NKFC.cjs');var _chunkNYYORERKcjs = require('./chunk-NYYORERK.cjs');require('./chunk-CK4JCQY6.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');exports.CookieStorage = _chunkTEI6NKFCcjs.a; exports.CrossmintAuth = _chunkBFLBVDHYcjs.a; exports.TIME_BEFORE_EXPIRING_JWT_IN_SECONDS = _chunkNZ2DAY24cjs.a; exports.createCrossmint = _commonsdkbase.createCrossmint; exports.deleteCookie = _chunkNYYORERKcjs.c; exports.getCookie = _chunkNYYORERKcjs.a; exports.getDefaultStorageProvider = _chunkTEI6NKFCcjs.b; exports.getJWTExpiration = _chunkVDJHVTKIcjs.a; exports.setCookie = _chunkNYYORERKcjs.b;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-JNKRUIWD.js";import"./chunk-BGZBK7AT.js";import{a as m}from"./chunk-REIMEXVF.js";import{a as t}from"./chunk-NIH25R3L.js";import{a as i,b as n}from"./chunk-M64WCXMK.js";import{a as o,b as s,c as e}from"./chunk-HU56N5SW.js";import"./chunk-22GIA4MK.js";import{createCrossmint as h}from"@crossmint/common-sdk-base";export{i as CookieStorage,r as CrossmintAuth,m as TIME_BEFORE_EXPIRING_JWT_IN_SECONDS,h as createCrossmint,e as deleteCookie,o as getCookie,n as getDefaultStorageProvider,t as getJWTExpiration,s as setCookie};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/client-sdk-auth",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.50",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"jwt-decode": "4.0.0",
|
|
22
22
|
"@farcaster/auth-kit": "0.6.0",
|
|
23
|
-
"@crossmint/client-sdk-base": "2.0.
|
|
24
|
-
"@crossmint/common-sdk-auth": "1.0.
|
|
25
|
-
"@crossmint/common-sdk-base": "0.9.
|
|
23
|
+
"@crossmint/client-sdk-base": "2.0.2",
|
|
24
|
+
"@crossmint/common-sdk-auth": "1.0.72",
|
|
25
|
+
"@crossmint/common-sdk-base": "0.9.20"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|