Skip to content

Commit 6256c4e

Browse files
fix (docs): add async for await function needed (#8365)
1 parent 815590c commit 6256c4e

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers

1 file changed

+1
-1
lines changed

src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ import 'aws-amplify/auth/enable-oauth-listener';
587587
import { getCurrentUser, fetchUserAttributes } from 'aws-amplify/auth';
588588
import { Hub } from 'aws-amplify/utils';
589589

590-
Hub.listen("auth", ({ payload }) => {
590+
Hub.listen("auth", async ({ payload }) => {
591591
switch (payload.event) {
592592
case "signInWithRedirect":
593593
const user = await getCurrentUser();

0 commit comments

Comments
 (0)