Skip to content

Commit

Permalink
Extended DotYouClientProvider;
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen committed Jan 23, 2025
1 parent 03d859a commit 02437de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions packages/mobile/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ let App = () => {
<GestureHandlerRootView>
<PushNotificationProvider>
<RouteContextProvider>
<RootStack />
<Toast />
<DotYouClientProvider>
<RootStack />
<Toast />
</DotYouClientProvider>
</RouteContextProvider>
</PushNotificationProvider>
</GestureHandlerRootView>
Expand Down
4 changes: 2 additions & 2 deletions packages/mobile/src/hooks/auth/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ export const useAuth = () => {
const getDotYouClient = useCallback(() => {
if (!sharedSecret || !identity || !authToken) {
return new DotYouClient({
api: ApiType.App,
hostIdentity: '',
api: ApiType.Guest,
hostIdentity: identity || '',
});
}

Expand Down

0 comments on commit 02437de

Please sign in to comment.