Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fhsinchy/7f9902cd35c79568759f2ab6b0420e07 to your computer and use it in GitHub Desktop.
Save fhsinchy/7f9902cd35c79568759f2ab6b0420e07 to your computer and use it in GitHub Desktop.
// 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