Open api with exchange token
Hey!
I need to create a public API (machine to machine) where our users will have to generate a key. the key is created by a user but attached to a company
(1 user belong to many company, 1 company has many users)
This is the flow:
1. user creates a key "A" in the context of a company
2. 3rd party application hits an endpoint
/oauth/access
. Our service respond with a token "B" valid 30 min.
3. 3rd party application can use all other endpoints with token "B"
Can we achieve this with bettaurAuth? can we use this feature? https://www.better-auth.com/docs/plugins/api-key? I dont see anything regarding the exchange of tokens
Thanks0 Replies