export default {
name: 'AuthCallback',
data() {
return {
accessToken: {},
}
},
mounted() {
const tokenParseRegex: RegExp = /access_token=(.*?)&/;
const idParseRegex: RegExp = /user_id(.*?)/;
const exAccessToken: RegExpMatchArray | null = useRoute().hash.match(tokenParseRegex);
this.data().accessToken = exAccessToken![1]
}
}
export default {
name: 'AuthCallback',
data() {
return {
accessToken: {},
}
},
mounted() {
const tokenParseRegex: RegExp = /access_token=(.*?)&/;
const idParseRegex: RegExp = /user_id(.*?)/;
const exAccessToken: RegExpMatchArray | null = useRoute().hash.match(tokenParseRegex);
this.accessToken = exAccessToken![1]
}
}