{{define "content"}}{{with .Data}}{{$set := .Set}}

Credentials

Kept in secrets.json in Supermarket's data folder, readable only by you. Saved values are never shown: leave a field empty to keep what's saved.

{{$group := ""}} {{range .Fields}} {{if ne .Group $group}}{{if $group}}{{end}}{{$group = .Group}}

{{.Group}}

{{end}}
{{if index $set .Name}}{{end}}
{{end}} {{if $group}}
{{end}}

Sign in to post

X

{{with index .Connections "x"}}{{if .Account}}

Connected as @{{.Account}}, {{ago .At}}.

{{end}}{{end}} {{if and (index $set .XToken) (not (index .Connections "x").Account)}}

A token is saved.

{{end}}

In the X developer portal, add this callback URL to your app: {{.XRedirect}}

LinkedIn

{{with index .Connections "linkedin"}}{{if .Account}}

Connected, {{ago .At}}.

{{end}}{{end}} {{if and (index $set .LIToken) (not (index .Connections "linkedin").Account)}}

A token is saved.

{{end}}

In your LinkedIn app's Auth settings, add this redirect URL: {{.LIRedirect}}

Reddit

{{with index .Connections "reddit"}}{{if .Account}}

Connected as u/{{.Account}}, {{ago .At}}.

{{end}}{{end}}

At reddit.com/prefs/apps, create a web app with this redirect URI: {{.RedditRedirect}}. Reddit's API terms need approval for commercial use: Supermarket is meant for a few hand-approved posts, not volume.

{{end}}{{end}}