Last active
June 24, 2021 11:52
-
-
Save fhsinchy/7f9902cd35c79568759f2ab6b0420e07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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