ReferenceAPI ReferenceAuth
Logout Auth
Logout Auth.
Request
interface AuthLogoutRequest {
action: 'logout'
resource: '/auth'
details: {
pubkey: string
}
}Prop
Type
Response
interface AuthLogoutResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
message: string
}
metadata: unknown
}Prop
Type
interface AuthLogoutResponse_pending {
status: 'pending'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
proposal_id: string
}
}Prop
Type
Example
import { resourceSchema } from '@blockstream/ecs-js-sdk'
import { broadcastRequest } from './broadcaster'
const response = await broadcastRequest<
typeof resourceSchema.shape.auth.shape.logout
>(
{
action: 'logout',
resource: '/auth',
details: {
// TODO: fill in required fields
},
},
blockstream,
)