Skip to content

Commit 32e8fbf

Browse files
committed
Clean up cv in localStorage after exchangeToken succeeds
1 parent 6602ea2 commit 32e8fbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/exchange-token.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default async function exchangeToken(
6464
throw new Error(result.error_description);
6565
}
6666

67+
storage.del('cv');
6768
return result as Token;
6869
} catch (error) {
6970
throw new Error(`[mt-link-sdk] \`exchangeToken\` execution failed. ${error}`);

0 commit comments

Comments
 (0)