summaryrefslogtreecommitdiff
path: root/blocks/authAPI/templates/google_callback.html
blob: 9d8dfa07a7a860ac1f8a743838c33d34b35f10e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Redirecting to the destination...</title>
    <script>
        window.localStorage.setItem('Xcos_token', '{{ token }}');
        var redirect_to = window.localStorage.getItem('ard_redurl');
        if (redirect_to) {
            window.localStorage.removeItem('ard_redurl');
            window.open(redirect_to, '_self')
        } else {
            window.open('{{url}}', '_self')
        }
    </script>
</head>
<body></body>
</html>