Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// src/App.vue
<script>
import qs from 'qs';
export default {
computed: {
isLoggedIn: () => false,
},
methods: {
redirect() {
const queryString = {
client_id: process.env.VUE_APP_OAUTH_CLIENT_ID,
redirect_uri: process.env.VUE_APP_OAUTH_CLIENT_REDIRECT,
response_type: 'code',
};
window.location.href = `${process.env.VUE_APP_OAUTH_AUTH_SERVER}/oauth/authorize?${qs.stringify(queryString)}`;
},
logout() {
//
},
},
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment