basejump icon indicating copy to clipboard operation
basejump copied to clipboard

Automatically creating API keys and accessing on the backend

Open joshghent opened this issue 9 months ago • 0 comments

Hey there, first of all, this project is amazing - thanks for your work on this! Keep going! 👍

I'm wondering how I can accomplish the following:

  1. How I can automatically create API keys (I suppose in the metadata in the basejump schema?) when a new account is created - both people and teams.
  2. How I can get and use the API key in a NextJS API route. For example, I want to grab the team details (including their payment plan) from the API key sent in the request header.

Thanks again :)

joshghent avatar May 02 '24 21:05 joshghent