Skip to content

Instantly share code, notes, and snippets.

@isdaviddong
Created April 6, 2019 08:04
Show Gist options
  • Save isdaviddong/e1c394dbc7cebe5d424446aff2e5ac91 to your computer and use it in GitHub Desktop.
Save isdaviddong/e1c394dbc7cebe5d424446aff2e5ac91 to your computer and use it in GitHub Desktop.
//建立OAuth 身分驗證頁面並導入
function AuthWithEmail() {
var URL = 'https://access.line.me/oauth2/v2.1/authorize?';
URL += 'response_type=code';
URL += '&client_id=這邊要換成你的client_id'; //TODO:這邊要換成你的client_id
URL += '&redirect_uri=http://localhost:17615/callback.aspx'; //TODO:要將此redirect url 填回你的 LineLogin後台設定
URL += '&scope=openid%20profile%20email';
URL += '&state=abcde';
window.location.href = URL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment