Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit ad26117

Browse files
committed
fix[interface]: return Promise from authenticate
1 parent cfbce2e commit ad26117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface InternetIdentityContextState {
1111
identityProvider: string
1212
isAuthenticated: boolean
1313
identity: Identity | null
14-
authenticate: () => void
14+
authenticate: () => Promise<void>
1515
signout: () => void
1616
}
1717

@@ -22,7 +22,7 @@ export const InternetIdentityContext =
2222
identityProvider: '',
2323
isAuthenticated: false,
2424
identity: null,
25-
authenticate: () => null,
25+
authenticate: () => new Promise(() => null),
2626
signout: () => null
2727
})
2828

0 commit comments

Comments
 (0)