krpeacock / auth-client-demo

Example demo of how to use https://www.npmjs.com/package/@dfinity/auth-client to make authenticated calls to an IC app
https://vasb2-4yaaa-aaaab-qadoa-cai.ic0.app/
74 stars 32 forks source link

After logout, login button has no click handler #1

Open plitzenberger opened 3 years ago

plitzenberger commented 3 years ago

Looks like init() needs to be called after rending content:

https://github.com/krpeacock/auth-client-demo/blob/44ccb4bcffcc0f2abb69d9334432c865ad2859d8/src/frontend/src/index.ts#L8-L25

https://github.com/krpeacock/auth-client-demo/blob/44ccb4bcffcc0f2abb69d9334432c865ad2859d8/src/frontend/src/views/loggedIn.ts#L40-L44