|
|
|
@ -72,15 +72,16 @@ const handleLogin = async ()=>{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const handleLineLogin = async () => {
|
|
|
|
const handleLineLogin = async () => {
|
|
|
|
const client_id = '1657876696'
|
|
|
|
router.push('/')
|
|
|
|
const redirect_uri = ''
|
|
|
|
// const client_id = '1657876696'
|
|
|
|
let link = 'https://access.line.me/oauth2/v2.1/authorize?'
|
|
|
|
// const redirect_uri = ''
|
|
|
|
link = link + 'response_type=code'
|
|
|
|
// let link = 'https://access.line.me/oauth2/v2.1/authorize?'
|
|
|
|
link += '&client_id=' + client_id
|
|
|
|
// link = link + 'response_type=code'
|
|
|
|
link += '&redirect_uri=' + redirect_uri
|
|
|
|
// link += '&client_id=' + client_id
|
|
|
|
link += '&state=login'
|
|
|
|
// link += '&redirect_uri=' + redirect_uri
|
|
|
|
link += '&scope=openid%20profile'
|
|
|
|
// link += '&state=login'
|
|
|
|
window.location.href = link
|
|
|
|
// link += '&scope=openid%20profile'
|
|
|
|
|
|
|
|
// window.location.href = link
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|