/** * Interfaces for Authentication * See gatsby-plugin-auth for implementation... */ // TODO: Use TypeScript... export function login() { return true } export function logout(redirectUrl) { return true } export function register() { return true } export function isAuthenticated() { return true } export function getUser() { if (!isAuthenticated()) return false return { firstname: "John", lastname: "Doe", email: "john.doe@geofit.fr", } } export function hasRoles(roles) { if (!isAuthenticated()) return false return true }