Closed markcraig closed 7 months ago
Ran out of time this weekend to implement unit tests for this store, https://pinia.vuejs.org/cookbook/testing.html
I believe this one is ready to merge. I don't have tests for the store or the components, yet, so I've logged https://github.com/markcraig/hdap-demo/issues/7 and https://github.com/markcraig/hdap-demo/issues/8
This moves the HDAP logic to its own store, as if we had an SDK. The HDAP store keeps track of the authenticated user and automatically logs the user out when its JWT expires.
This is still in draft because it needs unit tests. I've manually tested the authentication, read, and search functions, but I've not tested the other actions and functions that write to HDAP, so they're no doubt all broken one way or another. JavaScript never ceases to confuse me. ;-)