mirror of
https://github.com/20kaushik02/spotify-manager-web.git
synced 2025-12-06 06:34:06 +00:00
https://developer.spotify.com/blog/2025-02-12-increasing-the-security-requirements-for-integrating-with-spotify
18 lines
461 B
TypeScript
18 lines
461 B
TypeScript
import React, { useEffect } from "react";
|
|
import styles from "./Login.module.css";
|
|
import { authLoginFullURL } from "../../api/paths";
|
|
|
|
// auth through backend
|
|
const Login = () => {
|
|
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;
|