mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix missing authToken causing crash
This commit is contained in:
@@ -63,7 +63,7 @@ export const AppProvider: React.FC = ({ children }) => {
|
||||
|
||||
const getAuthToken = async () => {
|
||||
// check if token is expired
|
||||
if (currentUser) {
|
||||
if (currentUser && authToken) {
|
||||
const token: any = jwt_decode(authToken);
|
||||
if (token && token.exp * 1000 < Date.now()) {
|
||||
// token is expired
|
||||
|
||||
Reference in New Issue
Block a user