···96969797 encheader := strings.TrimRight(base64.RawURLEncoding.EncodeToString(hj), "=")
98989999+ // When proxying app.bsky.feed.getFeed the token is actually issued for the
100100+ // underlying feed generator and the app view passes it on. This allows the
101101+ // getFeed implementation to pass in the desired lxm and aud for the token
102102+ // and then just delegate to the general proxying logic
103103+ lxm, proxyTokenLxmExists := e.Get("proxyTokenLxm").(string)
104104+ if !proxyTokenLxmExists || lxm == "" {
105105+ lxm = pts[2]
106106+ }
107107+ aud, proxyTokenAudExists := e.Get("proxyTokenAud").(string)
108108+ if !proxyTokenAudExists || aud == "" {
109109+ aud = svcDid
110110+ }
111111+99112 payload := map[string]any{
100113 "iss": repo.Repo.Did,
101114 "aud": svcDid,
102102- "lxm": pts[2],
115115+ "lxm": lxm,
103116 "jti": uuid.NewString(),
104117 "exp": time.Now().Add(1 * time.Minute).UTC().Unix(),
105118 }