a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

request email oauth scope

+4 -3
+4 -3
app/api/oauth/[route]/oauth-metadata.ts
··· 4 4 ? "http://localhost:3000" 5 5 : "https://leaflet.pub"; 6 6 7 + const scope = "atproto transition:generic transition:email"; 7 8 const localconfig: OAuthClientMetadata = { 8 - client_id: `http://localhost/?redirect_uri=${encodeURI(`http://127.0.0.1:3000/api/oauth/callback`)}&scope=${encodeURIComponent("atproto transition:generic")}`, 9 + client_id: `http://localhost/?redirect_uri=${encodeURI(`http://127.0.0.1:3000/api/oauth/callback`)}&scope=${encodeURIComponent(scope)}`, 9 10 client_name: `Leaflet`, 10 11 client_uri: hostname, 11 12 redirect_uris: [`http://127.0.0.1:3000/api/oauth/callback`], 12 13 grant_types: [`authorization_code`, `refresh_token`], 13 14 response_types: [`code`], 14 15 application_type: `web`, 15 - scope: "atproto transition:generic", 16 + scope, 16 17 token_endpoint_auth_method: `none`, 17 18 dpop_bound_access_tokens: true, 18 19 }; ··· 31 32 grant_types: [`authorization_code`, `refresh_token`], 32 33 response_types: [`code`], 33 34 application_type: `web`, 34 - scope: "atproto transition:generic", 35 + scope, 35 36 token_endpoint_auth_method: `private_key_jwt`, 36 37 token_endpoint_auth_signing_alg: "ES256", 37 38 dpop_bound_access_tokens: true,