u
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Jan 2024 23:33:36 +0200
M
masto.go
→
masto.go
@@ -148,6 +148,7 @@
if grantType == "authorization_code" { // idk if this is ok? should code be reset? if app.AuthToken == code { + elog.Println("passed aauthtoken==code check") accessToken := tokengen() _, err := stmtSaveMastoAccessToken.Exec(app.ClientID, accessToken) if err != nil {@@ -160,6 +161,7 @@ j["access_token"] = accessToken
j["token_type"] = "Bearer" j["scope"] = app.Scopes j["created_at"] = time.Now().UTC().Unix() + elog.Println("aboutta goodjunk XXX") goodjunk(rw, j) } } else {