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

Commit

Permalink
fix[interface]: return Promise from authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
plitzenberger committed Mar 23, 2022
1 parent cfbce2e commit ad26117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface InternetIdentityContextState {
identityProvider: string
isAuthenticated: boolean
identity: Identity | null
authenticate: () => void
authenticate: () => Promise<void>
signout: () => void
}

Expand All @@ -22,7 +22,7 @@ export const InternetIdentityContext =
identityProvider: '',
isAuthenticated: false,
identity: null,
authenticate: () => null,
authenticate: () => new Promise(() => null),
signout: () => null
})

Expand Down

0 comments on commit ad26117

Please sign in to comment.