Skip to content

Commit

Permalink
channel: Fix bug in setting auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
kuv2707 committed Jun 20, 2024
1 parent e3a9bdf commit 6faf6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function AuthProvider({ children }: { children: ReactElement }) {
name: data.user.username,
});
setJwt(localToken!);
channel.setAuthCreds(data.token, data.user.id);
channel.setAuthCreds(localToken!, data.user.id);
channel.startPolling();
}
} catch (e) {
Expand Down

0 comments on commit 6faf6ee

Please sign in to comment.