GitHub callback
curl --request GET \
--url https://app.trustivan.com/api/v1/auth/github/callbackimport requests
url = "https://app.trustivan.com/api/v1/auth/github/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trustivan.com/api/v1/auth/github/callback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/github/callback"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}GitHub callback
GET
/
auth
/
github
/
callback
GitHub callback
curl --request GET \
--url https://app.trustivan.com/api/v1/auth/github/callbackimport requests
url = "https://app.trustivan.com/api/v1/auth/github/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trustivan.com/api/v1/auth/github/callback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/github/callback"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Response
Redirect with a single-use code.