@junobuild/core 0.0.17 → 0.0.19
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/browser/canisterStatus-QA2NYBQ6.js +2 -0
- package/dist/browser/chunk-BLAF376Q.js +35 -0
- package/dist/browser/{chunk-A53P2AD6.js.map → chunk-BLAF376Q.js.map} +1 -1
- package/dist/browser/index.js +12 -12
- package/dist/browser/index.js.map +3 -3
- package/dist/node/index.mjs +16 -16
- package/dist/node/index.mjs.map +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/auth.services.d.ts +5 -0
- package/dist/workers/auth.worker.js +1 -1
- package/dist/workers/auth.worker.js.map +1 -1
- package/package.json +5 -5
- package/dist/browser/canisterStatus-CMO3J52U.js +0 -2
- package/dist/browser/chunk-A53P2AD6.js +0 -35
- /package/dist/browser/{canisterStatus-CMO3J52U.js.map → canisterStatus-QA2NYBQ6.js.map} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { User } from './types/auth.types';
|
|
|
2
2
|
import type { Environment } from './types/env.types';
|
|
3
3
|
import type { Unsubscribe } from './types/subscription.types';
|
|
4
4
|
export * from './providers/auth.providers';
|
|
5
|
-
export { signIn, signOut } from './services/auth.services';
|
|
5
|
+
export { signIn, signOut, unsafeIdentity } from './services/auth.services';
|
|
6
6
|
export * from './services/doc.services';
|
|
7
7
|
export * from './services/storage.services';
|
|
8
8
|
export * from './types/auth.types';
|
|
@@ -4,3 +4,8 @@ export declare const initAuth: (provider?: Provider) => Promise<void>;
|
|
|
4
4
|
export declare const signIn: (options?: SignInOptions) => Promise<void>;
|
|
5
5
|
export declare const signOut: () => Promise<void>;
|
|
6
6
|
export declare const getIdentity: () => Identity | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Return what can be the identity of a sign-in user or an anonymous identity.
|
|
9
|
+
* Useful to load an identity in web workers.
|
|
10
|
+
*/
|
|
11
|
+
export declare const unsafeIdentity: () => Promise<Identity>;
|