mirror of
https://github.com/20kaushik02/spotify-manager-web.git
synced 2025-12-06 06:34:06 +00:00
18 lines
480 B
TypeScript
18 lines
480 B
TypeScript
import React, { useEffect } from "react";
|
|
import styles from "./Login.module.css";
|
|
import { authLoginFullURL } from "../../api/paths.ts";
|
|
|
|
// auth through backend
|
|
const Login = ():React.ReactNode => {
|
|
useEffect(() => {
|
|
const timeoutID = setTimeout(() => {
|
|
window.open(authLoginFullURL, "_self");
|
|
}, 1000);
|
|
|
|
return () => clearTimeout(timeoutID);
|
|
}, []);
|
|
return <div className={styles.login_wrapper}>Logging in to Spotify...</div>;
|
|
};
|
|
|
|
export default Login;
|