diff --git a/.changeset/polite-beans-sit.md b/.changeset/polite-beans-sit.md new file mode 100644 index 0000000..acd4186 --- /dev/null +++ b/.changeset/polite-beans-sit.md @@ -0,0 +1,5 @@ +--- +"@hydrofoil/shell-auth": patch +--- + +log-in and log-out method should be allowed to be non-async diff --git a/packages/auth/index.ts b/packages/auth/index.ts index 2ed169a..4bc9bf0 100644 --- a/packages/auth/index.ts +++ b/packages/auth/index.ts @@ -9,8 +9,8 @@ export interface AuthState { } export interface Effects { - logIn(arg?: { returnTo?: string | NamedNode }): Promise - logOut(): Promise + logIn(arg?: { returnTo?: string | NamedNode }): Promise | void + logOut(): Promise | void } type R = typeof reducers