UNPKG

react-auth-kit

Version:

Authentication Library for React, which makes Token based auth very easy

12 lines (11 loc) 251 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAuthenticated = isAuthenticated; function isAuthenticated(auth) { if (auth.auth) { return new Date(auth.auth.expiresAt) > new Date(); } return false; }