Skip to content
Snippets Groups Projects

CE-3625: Migrate auth components

Merged Johanna Szepanski requested to merge CE-3625-migrate-auth-components into main
4 files
+ 18
5
Compare changes
  • Side-by-side
  • Inline
Files
4
import { createContext, useContext } from "react";
export interface User {
interface User {
fullName?: string;
loginName?: string;
avatar?: string;
@@ -34,7 +34,7 @@ const defaultValue: AuthContextProps = {
export const AuthContext = createContext<AuthContextProps>(defaultValue);
export const useUserContext = () => {
export const useAuthContext = () => {
const {
user,
userRoles,
Loading