howelltttmusic commited on
Commit
8a5dbe5
·
verified ·
1 Parent(s): 4206589

Create app.js

Browse files
Files changed (1) hide show
  1. app.js +10 -0
app.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ // app.js - Your public configuration variables
2
+ const CLIENT_ID =448a8ed7-b70b-4660-9c3a-9588e7ff94f2;
3
+ const REDIRECT_URI = "http://127.0.0.1:8000";
4
+
5
+ function loginWithHuggingFace() {
6
+ const authUrl = `https://huggingface.co{CLIENT_ID}&redirect_uri=${encodeURIComponent(REDIRECT_URI)}&scope=openid%20profile`;
7
+ window.location.href = authUrl;
8
+ }
9
+
10
+ console.log("[H-bot Bridge] app.js initialized successfully.");