Skip to content

Commit c2eaaca

Browse files
fix(logout): remove wx login code in storage
1 parent e60a697 commit c2eaaca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/miniapp/src/Authing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ export class Authing {
265265
}
266266

267267
async logout(): Promise<boolean> {
268+
await this.storage.remove(getWxLoginCodeKey(this.options.appId))
269+
268270
const loginState = await this.getLoginState()
269271

270272
if (!loginState) {

0 commit comments

Comments
 (0)