package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
users "github.com/auth0/go-auth0/management/management/users"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &users.ListRefreshTokensRequestParameters{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
client.Users.RefreshToken.List(
context.TODO(),
"user_id",
request,
)
}{
"tokens": [
{
"id": "<string>",
"user_id": "auth0|507f1f77bcf86cd799439020",
"created_at": "2023-11-07T05:31:56Z",
"idle_expires_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"device": {
"initial_ip": "<string>",
"initial_asn": "<string>",
"initial_user_agent": "<string>",
"last_ip": "<string>",
"last_asn": "<string>",
"last_user_agent": "<string>"
},
"client_id": "<string>",
"session_id": "<string>",
"rotating": true,
"resource_servers": [
{
"audience": "<string>",
"scopes": "<string>"
}
],
"refresh_token_metadata": {},
"last_exchanged_at": "2023-11-07T05:31:56Z"
}
],
"next": "<string>"
}Retrieve details for a user’s refresh tokens.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
users "github.com/auth0/go-auth0/management/management/users"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &users.ListRefreshTokensRequestParameters{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
client.Users.RefreshToken.List(
context.TODO(),
"user_id",
request,
)
}{
"tokens": [
{
"id": "<string>",
"user_id": "auth0|507f1f77bcf86cd799439020",
"created_at": "2023-11-07T05:31:56Z",
"idle_expires_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"device": {
"initial_ip": "<string>",
"initial_asn": "<string>",
"initial_user_agent": "<string>",
"last_ip": "<string>",
"last_asn": "<string>",
"last_user_agent": "<string>"
},
"client_id": "<string>",
"session_id": "<string>",
"rotating": true,
"resource_servers": [
{
"audience": "<string>",
"scopes": "<string>"
}
],
"refresh_token_metadata": {},
"last_exchanged_at": "2023-11-07T05:31:56Z"
}
],
"next": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://auth0-chore-sdk-version-update-20260521.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 the user to get refresh tokens for
Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
An optional cursor from which to start the selection (exclusive).
Number of results per page. Defaults to 50.
1 <= x <= 100このページは役に立ちましたか?