Any ways to handle user authentication outside of Bubble?

Thank you so much Simon for the run through. I was not aware that we could write Javascript code for these things. Thanks for sharing the code as well.

The system which you have built is partially secure. It would be full proof if you add a hashing algorithm which hashes the initial content (removing the confidential information).
Implementation details
You can use a hashing algorithm to hash the non-confidential data and append it to the final output by the plugin.

With this you can verify that the data which you received has been encrypted by the bubble app (using the same key) and hash helps in checking that the data has not been changes in the transport . This should be a full proof way to tackle this situation. We need to keep in mind that the keys should be change(roll over) after every 90 days.