Entrar com identidade federada
curl --request POST \
--url http://localhost:4000/v1/auth/federated \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"providerUserId": "<string>",
"email": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>', providerUserId: '<string>', email: 'jsmith@example.com'})
};
fetch('http://localhost:4000/v1/auth/federated', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/federated"
payload = {
"provider": "<string>",
"providerUserId": "<string>",
"email": "jsmith@example.com"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/federated"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"providerUserId\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"token": "refy_token_example",
"user": {
"id": "usr_123",
"displayName": "Vinicius Coimbra",
"email": "viniciuscoimbra@gmail.com",
"username": "viniciuscoimbra",
"avatarUrl": "https://example.com/avatar.png"
},
"session": {
"id": "ses_123",
"userId": "usr_123",
"token": "refy_token_example",
"createdAt": "2026-04-28T12:00:00.000Z"
},
"identities": [
{
"id": "idn_123",
"provider": "google",
"providerUserId": "google_123",
"email": "viniciuscoimbra@gmail.com",
"createdAt": "2026-04-28T12:00:00.000Z"
}
]
}Entrar com identidade federada
POST
/
v1
/
auth
/
federated
Entrar com identidade federada
curl --request POST \
--url http://localhost:4000/v1/auth/federated \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"providerUserId": "<string>",
"email": "jsmith@example.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>', providerUserId: '<string>', email: 'jsmith@example.com'})
};
fetch('http://localhost:4000/v1/auth/federated', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/federated"
payload = {
"provider": "<string>",
"providerUserId": "<string>",
"email": "jsmith@example.com"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/federated"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"providerUserId\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"token": "refy_token_example",
"user": {
"id": "usr_123",
"displayName": "Vinicius Coimbra",
"email": "viniciuscoimbra@gmail.com",
"username": "viniciuscoimbra",
"avatarUrl": "https://example.com/avatar.png"
},
"session": {
"id": "ses_123",
"userId": "usr_123",
"token": "refy_token_example",
"createdAt": "2026-04-28T12:00:00.000Z"
},
"identities": [
{
"id": "idn_123",
"provider": "google",
"providerUserId": "google_123",
"email": "viniciuscoimbra@gmail.com",
"createdAt": "2026-04-28T12:00:00.000Z"
}
]
}Body
application/json
Response
200 - application/json
Sessao concedida