@pentops/j5-react-realm-auth
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -164,4 +164,4 @@ import React from 'react'; | ||
return access; | ||
}, reset() { | ||
set(Object.assign(Object.assign({}, defaultInitialState), initialState)); | ||
}, reset(isAuthenticating = true) { | ||
set(Object.assign(Object.assign(Object.assign({}, defaultInitialState), initialState), { isAuthenticating })); | ||
} }), initialState))); | ||
@@ -168,0 +168,0 @@ } |
@@ -7,5 +7,5 @@ import type { RealmAuthStore } from './store'; | ||
export declare function selectIsAuthenticated<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(state: RealmAuthStore<TRealmAccess, TContext>): boolean; | ||
export declare function selectReset<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(state: RealmAuthStore<TRealmAccess, TContext>): () => void; | ||
export declare function selectReset<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(state: RealmAuthStore<TRealmAccess, TContext>): (isAuthenticating?: boolean) => void; | ||
export declare function selectSetActiveAccess<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(state: RealmAuthStore<TRealmAccess, TContext>): (realmAccessId: string) => TRealmAccess | undefined; | ||
export declare function selectSetContext<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(state: RealmAuthStore<TRealmAccess, TContext>): (cb: (context: TContext | undefined) => TContext | undefined, isAuthenticating?: boolean) => TContext | undefined; | ||
//# sourceMappingURL=selectors.d.ts.map |
@@ -13,3 +13,3 @@ import { type RealmAccess, type WhoAmIContext } from './types'; | ||
setActiveAccess: (realmAccessId: string) => TRealmAccess | undefined; | ||
reset(): void; | ||
reset(isAuthenticating?: boolean): void; | ||
} | ||
@@ -29,3 +29,3 @@ export declare const defaultInitialState: { | ||
readonly useRealmAuthIsAuthenticated: () => boolean; | ||
readonly useRealmAuthReset: () => () => void; | ||
readonly useRealmAuthReset: () => (isAuthenticating?: boolean) => void; | ||
readonly useRealmAuthSetActiveAccess: () => (realmAccessId: string) => TRealmAccess | undefined; | ||
@@ -32,0 +32,0 @@ readonly useRealmAuthSetContext: () => (cb: (context: TContext | undefined) => TContext | undefined, isAuthenticating?: boolean) => TContext | undefined; |
{ | ||
"name": "@pentops/j5-react-realm-auth", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21956