Skip to content

fix: 新密钥不传给cosApi#14

Open
toknT wants to merge 4 commits intoTencentCloud:mainfrom
toknT:main
Open

fix: 新密钥不传给cosApi#14
toknT wants to merge 4 commits intoTencentCloud:mainfrom
toknT:main

Conversation

@toknT
Copy link

@toknT toknT commented Jun 13, 2024

#13

强制清老临时密钥和用新的临时密钥,新密钥不传给cosApi

  /// 强制让本地保存临时秘钥失效
  /// 包括SessionCredential或ScopeLimitCredential
  Future<void> forceInvalidationCredential() async {
    flutterCosApi.forceInvalidationScopeCredentials();
    await _cosApi.forceInvalidationCredential();
    _initialized = false; // 加了这一步不知道合不合适
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant