@aws-amplify/auth
Version:
Auth category of aws-amplify
1 lines • 972 B
Source Map (JSON)
{"version":3,"file":"completeOAuthSignOut.mjs","sources":["../../../../../../src/providers/cognito/utils/oauth/completeOAuthSignOut.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Hub, clearCredentials } from '@aws-amplify/core';\nimport { AMPLIFY_SYMBOL } from '@aws-amplify/core/internals/utils';\nimport { tokenOrchestrator } from '../../tokenProvider';\nexport const completeOAuthSignOut = async (store) => {\n await store.clearOAuthData();\n tokenOrchestrator.clearTokens();\n await clearCredentials();\n Hub.dispatch('auth', { event: 'signedOut' }, 'Auth', AMPLIFY_SYMBOL);\n};\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;AAIY,MAAC,oBAAoB,GAAG,OAAO,KAAK,KAAK;AACrD,IAAI,MAAM,KAAK,CAAC,cAAc,EAAE;AAChC,IAAI,iBAAiB,CAAC,WAAW,EAAE;AACnC,IAAI,MAAM,gBAAgB,EAAE;AAC5B,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC;AACxE;;;;"}