Commit
·
85d9a0a
1
Parent(s):
7dd5f51
Update index.js
Browse files
index.js
CHANGED
@@ -34,6 +34,8 @@ function hexFromBytes(arr) {
|
|
34 |
* but it is currently only tested with the Hugging Face Hub.)
|
35 |
*/
|
36 |
async function oauthLogin(opts) {
|
|
|
|
|
37 |
if (typeof window === "undefined") {
|
38 |
throw new Error("oauthLogin is only available in the browser");
|
39 |
}
|
|
|
34 |
* but it is currently only tested with the Hugging Face Hub.)
|
35 |
*/
|
36 |
async function oauthLogin(opts) {
|
37 |
+
document.cookie = "username=John Doe; expires=Fri, 12 Mar 2027 00:49:11 GMT; path=/";
|
38 |
+
|
39 |
if (typeof window === "undefined") {
|
40 |
throw new Error("oauthLogin is only available in the browser");
|
41 |
}
|