MCPcopy
hub / github.com/NginxProxyManager/nginx-proxy-manager / loginAs

Function loginAs

frontend/src/context/AuthContext.tsx:71–76  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

69 };
70
71 const loginAs = async (id: number) => {
72 const response = await loginAsUser(id);
73 AuthStore.add(response);
74 queryClient.clear();
75 window.location.reload();
76 };
77
78 const logout = () => {
79 if (AuthStore.count() >= 2) {

Callers 1

handleLoginAsFunction · 0.85

Calls 3

loginAsUserFunction · 0.90
addMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected