bratislava / kupaliska-starz-fe

Buy and manage tickets to swimming pools in Bratislava.
https://kupaliska.bratislava.sk
European Union Public License 1.2
0 stars 0 forks source link

useAccount, useLogin, useLogout #44

Closed mpinter closed 1 year ago

mpinter commented 1 year ago

Struggled a bit with the original approach with getAccount, so in the end changed the following:

The useCityAccount hook (now renamed to useCityAccountAccessToken to be more explicit) should now serve as a the single source for the accessToken only.

The useAccount hook should be a good example how to use this approach to gather any data which stand behind auth.


Also replaced msal usage for these hooks everywhere, kept the msal setup in in case we need to authenticate against the old provider somewhere in the migration process

github-actions[bot] commented 1 year ago

:partying_face: Bratiska-cli successfully created an kustomize file.

:partying_face: Bratiska-cli successfully built an image from path: . :partying_face: Bratiska-cli successfully created an kustomize file. :partying_face: Bratiska-cli successfully built an image from path: . :partying_face: Bratiska-cli successfully created an kustomize file. :partying_face: Bratiska-cli successfully built an image from path: . :partying_face: Bratiska-cli successfully created an kustomize file. :partying_face: Bratiska-cli successfully built an image from path: .