1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00
appwrite/app/views/home/auth/oauth2.phtml
2020-10-30 21:53:27 +02:00

18 lines
732 B
PHTML

<div class="zone large padding margin-top" id="message" style="display: none">
<h1 class="margin-bottom">Missing Redirect URL</h1>
<p>Your OAuth login flow is missing a proper redirect URL. Please check the
<a href="https://<?php echo APP_DOMAIN; ?>/docs/client/account?sdk=web#createOAuth2Session">OAuth docs</a>
and send request for new session with a valid callback URL.</p>
</div>
<script>
setTimeout(function () {
document.getElementById('message').style.display = 'block';
}, 25);
const query = new URLSearchParams(window.location.search);
const project = query.get('project');
window.location = 'appwrite-callback-'+project+'://'+window.location.search;
</script>
<hr />