共用方式為


TokenCachePersistenceOptions interface

在身分識別認證中啟用令牌快取持續性的參數。

屬性

enabled

如果設定為 true,將會為此認證實例啟用持續性令牌快取。

name

永續性令牌快取的唯一標識符。

根據此標識碼,持續性檔案會位於下列任何位置:

  • Darwin:'/Users/user/。IdentityService/'
  • Windows 8+: 'C:\Users\user\AppData\Local\。IdentityService\'
  • Linux:'/home/user/。IdentityService/'
unsafeAllowUnencryptedStorage

如果設定為 true,則如果沒有作系統層級的使用者加密可用,快取將會儲存而不加密。 當設定為 false 時,如果沒有任何 OS 層級的使用者加密可用,PersistentTokenCache 會擲回錯誤。

屬性詳細資料

enabled

如果設定為 true,將會為此認證實例啟用持續性令牌快取。

enabled: boolean

屬性值

boolean

name

永續性令牌快取的唯一標識符。

根據此標識碼,持續性檔案會位於下列任何位置:

  • Darwin:'/Users/user/。IdentityService/'
  • Windows 8+: 'C:\Users\user\AppData\Local\。IdentityService\'
  • Linux:'/home/user/。IdentityService/'
name?: string

屬性值

string

unsafeAllowUnencryptedStorage

如果設定為 true,則如果沒有作系統層級的使用者加密可用,快取將會儲存而不加密。 當設定為 false 時,如果沒有任何 OS 層級的使用者加密可用,PersistentTokenCache 會擲回錯誤。

unsafeAllowUnencryptedStorage?: boolean

屬性值

boolean