Yōten: A social tracker for your language learning journey built on the atproto.

feat(oauth): overload oauth identity directory

Signed-off-by: brookjeynes <me@brookjeynes.dev>

authored by brookjeynes.dev and committed by

Tangled d3aceeb3 768b8a70

+7 -1
+4
internal/atproto/resolver.go
··· 53 53 54 54 return r.directory.Lookup(ctx, *id) 55 55 } 56 + 57 + func (r *Resolver) Directory() identity.Directory { 58 + return r.directory 59 + }
+3 -1
internal/server/oauth/oauth.go
··· 58 58 } 59 59 60 60 sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret)) 61 + clientApp := oauth.NewClientApp(&oauthConfig, authStore) 62 + clientApp.Dir = idResolver.Directory() 61 63 62 64 return &OAuth{ 63 - ClientApp: oauth.NewClientApp(&oauthConfig, authStore), 65 + ClientApp: clientApp, 64 66 Config: config, 65 67 SessionStore: sessStore, 66 68 JwksUri: jwksUri,