Skip to content

Commit

Permalink
fix: move datastore to dependency (#1115)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Shih <jushih@amazon.com>
  • Loading branch information
Jshhhh and Justin Shih committed Oct 19, 2023
1 parent 6b2206a commit 381e0a5
Show file tree
Hide file tree
Showing 3 changed files with 327 additions and 2,548 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import { SignOutOpts } from '@aws-amplify/auth/lib-esm/types/Auth';
import { Hub, Auth } from 'aws-amplify';
import { AMPLIFY_SYMBOL } from '../amplify-symbol';
import { getErrorMessage } from '../get-error-message';
Expand All @@ -24,8 +23,10 @@ import {
ACTION_AUTH_SIGNOUT_FINISHED,
} from './constants';

export type SignOutOptions = Parameters<typeof Auth['signOut']>[0];

export interface UseAuthSignOutAction {
(options?: SignOutOpts): () => Promise<void>;
(options?: SignOutOptions): () => Promise<void>;
}

export const useAuthSignOutAction: UseAuthSignOutAction = (options) => async () => {
Expand Down
Loading

0 comments on commit 381e0a5

Please sign in to comment.