()
| 47 | useEffect(() => { |
| 48 | setLoading(true); |
| 49 | async function initializeAuth() { |
| 50 | try { |
| 51 | await auth.init(); |
| 52 | if (auth.privKey) { |
| 53 | await printUserInfo(); |
| 54 | } |
| 55 | } catch (error) { |
| 56 | log.error("error while initialization", error); |
| 57 | } finally { |
| 58 | setLoading(false); |
| 59 | } |
| 60 | } |
| 61 | initializeAuth(); |
| 62 | }, []); |
| 63 |
no test coverage detected