Skip to main content

Workflow Links

Create Auto Badge

If you have not already created a badge:

  1. Login to AKA Profiles app.
  2. Click Deveoper Mode, then Auto Badges.
  3. Enter a name and click Add.
Badges & Profiles

When adding an auto badge, it is created based on the current profile (pubkey) selected in AKA Profiles.

Because we need to store a private key to award badges, it is recommended you create a seperate profile for your auto badges.

Add a new profile by clicking the avator icon in app bar.

The workflow navigates the user between AKA Profiles pages and integrated Badge Award Pages.

drawing

view full size

  1. Get Badge Link displays the badge and starts the user workflow.
  2. Workflow redirects the user to the Badge Award Page.
  3. Your page redirects back to the workflow using redirect url parameter.

The workflow links for the auto badge are available at Auto Badge - Config page.

drawing

view full size

  • Copy and link to the Get Badge Link to start the workflow process.
  • Set the Badge Award Page URL for the workflow redirect to your page.
  • redirect url parameter is provided as url parameter on Badge Award Page redirect
    • e.g. http://localhost/mybadgeawardpage?code=<code>&redirect=<url>
NOSTR TIP

You can append a state URL parameter when linking to the Get Badge Link.
This value will be included to the Nostr Badge Award event in "state" tag. This enables your app to find the matching badge award event when the user has created a new profile (pubkey) during the workflow.

e.g. https://get.akaprofiles.com/njump/naddr.../?state=12345