fix(frontend): check for ID instead of email after initial setup Plex login (#1097)

pull/1072/head^2
TheCatLady 4 years ago committed by GitHub
parent cd21865c4d
commit 778dda67d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ const LoginWithPlex: React.FC<LoginWithPlexProps> = ({ onComplete }) => {
const login = async () => {
const response = await axios.post('/api/v1/auth/plex', { authToken });
if (response.data?.email) {
if (response.data?.id) {
revalidate();
}
};

Loading…
Cancel
Save