···9697 encheader := strings.TrimRight(base64.RawURLEncoding.EncodeToString(hj), "=")
9899+ // When proxying app.bsky.feed.getFeed the token is actually issued for the
100+ // underlying feed generator and the app view passes it on. This allows the
101+ // getFeed implementation to pass in the desired lxm and aud for the token
102+ // and then just delegate to the general proxying logic
103+ lxm, proxyTokenLxmExists := e.Get("proxyTokenLxm").(string)
104+ if !proxyTokenLxmExists || lxm == "" {
105+ lxm = pts[2]
106+ }
107+ aud, proxyTokenAudExists := e.Get("proxyTokenAud").(string)
108+ if !proxyTokenAudExists || aud == "" {
109+ aud = svcDid
110+ }
111+112 payload := map[string]any{
113 "iss": repo.Repo.Did,
114 "aud": svcDid,
115+ "lxm": lxm,
116 "jti": uuid.NewString(),
117 "exp": time.Now().Add(1 * time.Minute).UTC().Unix(),
118 }