Refat81 commited on
Commit
e2f8a5b
·
verified ·
1 Parent(s): 4a8bf99

Create pages/oauth_callback.py

Browse files
Files changed (1) hide show
  1. pages/oauth_callback.py +31 -0
pages/oauth_callback.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # pages/oauth_callback.py
2
+ import streamlit as st
3
+
4
+ st.set_page_config(page_title="Authenticating...", page_icon="⏳")
5
+
6
+ st.write("""
7
+ <div style="text-align: center; padding: 50px;">
8
+ <h1>🔐 Authenticating...</h1>
9
+ <p>Please wait while we log you in with Google.</p>
10
+ <div class="spinner"></div>
11
+ </div>
12
+
13
+ <style>
14
+ .spinner {
15
+ border: 4px solid #f3f3f3;
16
+ border-top: 4px solid #4285F4;
17
+ border-radius: 50%;
18
+ width: 40px;
19
+ height: 40px;
20
+ animation: spin 2s linear infinite;
21
+ margin: 20px auto;
22
+ }
23
+
24
+ @keyframes spin {
25
+ 0% { transform: rotate(0deg); }
26
+ 100% { transform: rotate(360deg); }
27
+ }
28
+ </style>
29
+ """, unsafe_allow_html=True)
30
+
31
+ # This page just shows loading. The actual auth happens in app.py