I'm just diving into the world of javascript frameworks (late to the party I know) and can't figure out the missing piece of the authentication puzzle.

What is the preferred way to authenticate users from a Vue or any other javascript app running from element API? My Craft install and the app will be on separate domains.

Is it best to just push them to the craft install to log in then rely on sessions (is this secure?), or is there a preferred way? I have seen JWT's mentioned a few times, but guessing this will be tricky for a non-developer.

1 Answer 1


And just like that I stumble over this wonderful blog post https://digitalevangelist.net/blog/vuejs-craft-cms-single-page-app-logging-in-to-craft

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.