Flow Overview
- Artist enters their email and clicks Send Code
- Your app calls
POST /oauth/code— In•Process emails a 6-digit OTP - Artist enters the code
- Your app calls
POST /oauth/login— returns a JWT valid for 1 hour - Include the JWT as a
Bearertoken on subsequent authenticated requests
API Helpers
Create two thin wrappers around the In•Process API endpoints:React Hook
Encapsulate the two-step flow in a custom hook:Button Component
Wire the hook into a self-contained sign-in component:Using the Token
After a successful login the JWT is available fromtoken and the artist’s Privy embedded wallet address is available from socialWallet. Pass the token as a Bearer header on authenticated In•Process API calls. For example, create an API key for the signed-in artist:
sessionStorage and call the full OTP flow again when it expires.
Parameters
POST /oauth/code — Send Code
Response
POST /oauth/login — Login with OTP
Response
Next Steps
- Browse the API Reference to see which endpoints require authentication
- Use the token to create moments or manage collections on behalf of the signed-in artist