u
Anirudh Oppiliappan x@icyphox.sh
Sun, 11 Feb 2024 11:16:09 +0200
3 files changed,
2 insertions(+),
4 deletions(-)
M
database.go
→
database.go
@@ -1190,7 +1190,7 @@ func getMastoAppFromAccessToken(accesstoken string) *MastoApp {
var clientID string err := stmtGetClientIDWithAccessToken.Get(&clientID, accesstoken) if err == sql.ErrNoRows { - elog.Printf("masto: invalid authtoken: %s\n", accesstoken) + elog.Printf("masto: invalid accesstoken: %s\n", accesstoken) return nil }
M
masto.go
→
masto.go
@@ -148,7 +148,6 @@
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 {@@ -161,7 +160,6 @@ 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 {