Social Connections, Custom Header is not showing up

Trying to use auth0’s social connections for reddith auth. But I am having trouble with custome headers.
Everything works but reddit is limiting the duration for only an hour. In order to make it permanent, reddit github secified that I have “duration” variable in the url query string. Such as

https://www.reddit.com/api/v1/authorize?client_id=CLIENT_ID&duration=DURATION

To solve this I put duration in customer headers in Soclal Connection like so:

{
   "duration": "permanent"
}

But it did not show up when I try to test the connection. Am I doing something wrong?

I am still having trouble with this.

Firgured it out
For custom social connection, instead of giving this auth url

https://www.reddit.com/api/v1/authorize?

Just give this url:

https://www.reddit.com/api/v1/authorize?duration=permanent
1 Like

Perfect! Glad that you sorted it out and thanks for sharing with the rest of community!