Obter sessao
curl --request GET \
--url http://localhost:4000/v1/auth/sessions/{sessionId}const options = {method: 'GET'};
fetch('http://localhost:4000/v1/auth/sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/sessions/{sessionId}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/sessions/{sessionId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"userId": "<string>",
"token": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z"
}Obter sessao
GET
/
v1
/
auth
/
sessions
/
{sessionId}
Obter sessao
curl --request GET \
--url http://localhost:4000/v1/auth/sessions/{sessionId}const options = {method: 'GET'};
fetch('http://localhost:4000/v1/auth/sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/sessions/{sessionId}"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/sessions/{sessionId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"userId": "<string>",
"token": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z"
}