Skip to content

Instantly share code, notes, and snippets.

@bryansray
Created July 31, 2018 01:56
Show Gist options
  • Save bryansray/e8da21e157c0b3d9ffde8d53ee3333d2 to your computer and use it in GitHub Desktop.
Save bryansray/e8da21e157c0b3d9ffde8d53ee3333d2 to your computer and use it in GitHub Desktop.
<script lang="ts">
import Vue from "vue";
import { mapActions } from "vuex";
import router from "@/router";
export default Vue.extend({
name: 'callback',
data (): any {
this.handleAuthentication();
router.replace('/');
return {};
},
methods: mapActions("session", ["handleAuthentication"]),
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment