Auto-indexing service and GraphQL API for AT Protocol Records

fix: use login handle instead of did for oauth

Fixes #9

Trezy 983da80f 3c149a58

+2 -2
+1 -1
server/src/handlers/admin_oauth_authorize.gleam
··· 190 190 " ", 191 191 )) 192 192 <> "&login_hint=" 193 - <> uri.percent_encode(did) 193 + <> uri.percent_encode(login_hint) 194 194 195 195 wisp.redirect(auth_url) 196 196 }
+1 -1
server/src/handlers/oauth/authorize.gleam
··· 430 430 <> "&scope=" 431 431 <> uri.percent_encode(scope) 432 432 <> "&login_hint=" 433 - <> uri.percent_encode(did) 433 + <> uri.percent_encode(option.unwrap(req.login_hint, "")) 434 434 435 435 Ok(RedirectToATProtocol(authorization_url: auth_url)) 436 436 }