Skip to content

Commit

Permalink
twsat
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 18, 2024
1 parent b10cc5d commit c679f74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export default function Home({ }) {
async function crazyAuthListener() {
const user = await window.CrazyGames.SDK.user.getUser();
if(user) {
console.log("crazygames user", user)
const token = await window.CrazyGames.SDK.user.getUserToken();
if(token && user.username) {
// /api/crazyAuth
Expand Down Expand Up @@ -227,6 +228,7 @@ export default function Home({ }) {

}
} else {
console.log("crazygames user not logged in")
// user not logged in
// verify with not_logged_in
setWs((prev) => {
Expand Down

0 comments on commit c679f74

Please sign in to comment.