Iniciar OAuth com Google
curl --request GET \
--url http://localhost:4000/v1/auth/google/startconst options = {method: 'GET'};
fetch('http://localhost:4000/v1/auth/google/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/google/start"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/google/start"
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>"
}Iniciar OAuth com Google
GET
/
v1
/
auth
/
google
/
start
Iniciar OAuth com Google
curl --request GET \
--url http://localhost:4000/v1/auth/google/startconst options = {method: 'GET'};
fetch('http://localhost:4000/v1/auth/google/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/google/start"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/google/start"
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>"
}Query Parameters
Response
Redireciona para a tela de consentimento do Google