Login.js
562 Bytes
import React from "react";
import "./Login.css";
function Login(){
const OAuthUrl = `https://id.twitch.tv/oauth2/authorize?response_type=code&approval_prompt=auto&redirect_uri=http://localhost:3303/join&client_id=2d1gvcqyiyrk180qvnkec2fl23sv1o`; // oauth 인증용 url
return (
<div className="login">
<img
src="https://upload.wikimedia.org/wikipedia/commons/2/26/Twitch_logo.svg"
alt=""
/>
<a href={OAuthUrl}>Login to Twitch</a>
</div>
);
}
export default Login;