Skip to content

Instantly share code, notes, and snippets.

View Darkzarich's full-sized avatar
🎯
Learning new things everyday

Max Darkzarich

🎯
Learning new things everyday
View GitHub Profile
@Darkzarich
Darkzarich / guide.md
Last active April 25, 2021 23:54
Frontend Token-Based Authentication in Vue

Frontend Token-Based Authentication in Vue

User registration:

RegisterUser.vue:

methods: {
  register() {
    this.$store.dispatch('register', {