UNPKG

238 BPlain TextView Raw
1import type { CognitoUser } from 'amazon-cognito-identity-js'
2export async function globalSignOut(user:CognitoUser) {
3 return new Promise((resolve, reject)=>{
4 user.globalSignOut({
5 onSuccess: resolve,
6 onFailure: reject,
7 })
8 })
9}