File size: 705 Bytes
ef54470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
    <title>Đang xác thực...</title>
    <script>

        window.onload = function() {

            // Xử lý cả hash (token) và query (code)

            const payload = {

                hash: window.location.hash,

                search: window.location.search,

                origin: window.location.origin

            };

            if (window.opener && !window.opener.closed) {

                window.opener.postMessage({ type: 'oauth_callback', payload: payload }, payload.origin);

            }

            window.close();

        };

    </script>
</head>
<body>
    <p>Đang xử lý xác thực, vui lòng chờ...</p>
</body>
</html>