|
5 | 5 | <link rel="stylesheet" href="/styles.css" />
|
6 | 6 | </head>
|
7 | 7 | <body>
|
8 |
| - <div id="loading" class="loading text-center"> |
9 |
| - <h2>Processing Authorization...</h2> |
10 |
| - <p>Exchanging authorization code for access token...</p> |
11 |
| - </div> |
12 |
| - |
13 | 8 | <div id="success" style="display: none">
|
14 | 9 | <div class="alert success">
|
15 |
| - <h2>Authentication Successful! ✓</h2> |
| 10 | + <h4>Authentication Successful! ✓</h4> |
16 | 11 | <p>You have successfully obtained an access token.</p>
|
17 | 12 | </div>
|
18 | 13 |
|
19 |
| - <h3>Access Token</h3> |
20 |
| - <div class="code" id="accessTokenDisplay"></div> |
| 14 | + <h4>Access Token</h4> |
| 15 | + <div class="alert code" id="accessTokenDisplay"></div> |
21 | 16 | <p>You can now access protected resources using your access token.</p>
|
22 | 17 |
|
23 | 18 | <a href="/" class="button primary">Go to Homepage</a>
|
24 | 19 | </div>
|
25 | 20 |
|
26 | 21 | <div id="error" style="display: none">
|
27 | 22 | <div class="alert danger">
|
28 |
| - <h2>Error</h2> |
| 23 | + <h4>Error</h4> |
29 | 24 | <p id="errorMessage"></p>
|
30 | 25 | </div>
|
31 | 26 |
|
|
72 | 67 | }
|
73 | 68 |
|
74 | 69 | function showSuccess(accessToken) {
|
75 |
| - document.getElementById("loading").style.display = "none"; |
76 | 70 | document.getElementById("accessTokenDisplay").textContent =
|
77 | 71 | accessToken.substring(0, 20) + "...";
|
78 | 72 | document.getElementById("success").style.display = "block";
|
79 | 73 | }
|
80 | 74 |
|
81 | 75 | function showError(message) {
|
82 |
| - document.getElementById("loading").style.display = "none"; |
83 | 76 | document.getElementById("errorMessage").textContent = message;
|
84 | 77 | document.getElementById("error").style.display = "block";
|
85 | 78 | }
|
|
0 commit comments