[null,null,["最后更新时间 (UTC):2024-12-21。"],[[["HTTP requests from AMP emails in Gmail are proxied and stripped of cookies for security, requiring alternative authentication methods like access tokens."],["Access tokens, generated by the sender, enable authentication within AMP emails and must be secure, time-limited, and included in the request URL."],["AMP components such as `\u003camp-list\u003e` and `\u003camp-form\u003e` utilize access tokens within their URLs for data fetching and form submission."],["Email clients may strip AMP content upon reply or forward, and Gmail has a 30-day usability limit for AMP parts, impacting access token lifespan."],["Access tokens directly identify the user within the URL, replacing traditional cookie-based authentication in AMP emails to address anonymization."]]],["AMP emails in Gmail use proxied HTTP requests, stripping cookies, which prevents standard user authentication. To enable dynamic content, email senders must use access tokens. These cryptographically secure, time- and scope-limited tokens are included in request URLs (e.g., `\u003camp-list\u003e` `src` or `\u003camp-form\u003e` `action-xhr`). Senders generate and validate the tokens to authorize user-specific data requests. For example, a note-taking service embeds a unique token in the URL to fetch a user's notes. Tokens should last 31 days, as AMP parts are usable for 30 days.\n"]]