package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Sessions.Get(
context.TODO(),
"id",
)
}{
"id": "<string>",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"authenticated_at": "2023-11-07T05:31:56Z",
"idle_expires_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_interacted_at": "2023-11-07T05:31:56Z",
"device": {
"initial_user_agent": "<string>",
"initial_ip": "<string>",
"initial_asn": "<string>",
"last_user_agent": "<string>",
"last_ip": "<string>",
"last_asn": "<string>"
},
"clients": [
{
"client_id": "<string>"
}
],
"authentication": {
"methods": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>"
}
]
},
"cookie": {
"mode": "non-persistent"
},
"session_metadata": {}
}Retrieve session information.
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Sessions.Get(
context.TODO(),
"id",
)
}{
"id": "<string>",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"authenticated_at": "2023-11-07T05:31:56Z",
"idle_expires_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_interacted_at": "2023-11-07T05:31:56Z",
"device": {
"initial_user_agent": "<string>",
"initial_ip": "<string>",
"initial_asn": "<string>",
"last_user_agent": "<string>",
"last_ip": "<string>",
"last_asn": "<string>"
},
"clients": [
{
"client_id": "<string>"
}
],
"authentication": {
"methods": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"type": "<string>"
}
]
},
"cookie": {
"mode": "non-persistent"
},
"session_metadata": {}
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of session to retrieve
The session was retrieved
The ID of the session
ID of the user which can be used when interacting with other APIs.
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
The date and time when the session was created
Metadata related to the device used in the session
Show child attributes
List of client details for the session
Show child attributes
Details about authentication signals obtained during the login flow
Show child attributes
[Private Early Access] Session cookie configuration.
Show child attributes
Metadata associated with the session, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed.
Cette page vous a-t-elle été utile ?