Google oAuth
How get clientID and secret key
Auth by native app
Auth with Google oAuth
POST https://api.directual.com/good/v4/auth
Request Body
Name
Type
Description
appID
string
id of your app (go to API β API keys, create key (if there is none) and copy APP_ID) ID
provider
string
code
string
auth code after successful authentication
clientID
string
clientID google oAuth
redirect_uri
string
redirect_uri
{
"result":{
"token": "8ba4aee8-f509-41d0-9c59-232e828a41a6",
"username": "test",
"role": ""
},
"status": "ok"
}{
"msg":"user or password incorrect",
"status":"error"
}Example auth for React js
Install google-login plugin
Insert login button to your LoginPage template, example:
Last updated
Was this helpful?