mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 01:22:48 +00:00
wip - oauth
This commit is contained in:
@@ -3,6 +3,10 @@ import { Link } from 'react-router';
|
||||
|
||||
import './Navbar.scss';
|
||||
|
||||
// TODO: change url for build
|
||||
const redirectUri = 'https://localhost/oauth';
|
||||
const oauthUrl = `https://discordapp.com/api/oauth2/authorize?client_id=410818759746650140&redirect_uri=${redirectUri}&response_type=code&scope=email`;
|
||||
|
||||
interface Props {
|
||||
|
||||
}
|
||||
@@ -22,6 +26,7 @@ export class Navbar extends React.Component<Props, State> {
|
||||
<Link to="/downloader" className="Navbar__item" activeClassName="Navbar__item--active">Youtube Downloader</Link>
|
||||
<Link to="/pubg" className="Navbar__item" activeClassName="Navbar__item--active">Pubg</Link>
|
||||
<Link to="/clips" className="Navbar__item" activeClassName="Navbar__item--active">Clips</Link>
|
||||
<a href={oauthUrl} className="Navbar__item">Login</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user