1
0
Fork 0
mirror of synced 2024-05-21 05:02:37 +12:00
appwrite/app/views/home/auth/oauth2.phtml
2020-06-11 22:36:10 +03:00

18 lines
725 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 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 />