I want users of my app to access my bubble app’s API however i’m struggling with getting the authentication to work. I’ve created a login endpoint but the JSON response is not formatted as OAUTH 2.0. How do i reformat the response or is there another way to authenticate or get an OAUTH 2.0 response. If only Bubble could allow me to reformat the response or provide an OAUTH 2.0 response. See examples below.
This is the response I get which is not OAUTH 2.0:
{
“status”: “success”,
“response”: {
“user_id”: “1579902855738x256312522330588862”,
“token”: “1580121603486x826913756702429609”,
“expires”: 31536000
}
}
This is response I want in OAUTH 2.0:
{
“access_token”: “1580121603486x826913756702429609”,
“token_type”: “bearer”,
“expires_in”: 31536000
}