File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,15 +192,15 @@ class SerializableTokenCache(TokenCache):
192192 Depending on your need,
193193 the following simple recipe for file-based persistence may be sufficient::
194194
195- import atexit
196- cache = SerializableTokenCache()
195+ import atexit, msal
196+ cache = msal. SerializableTokenCache()
197197 cache.deserialize(open("my_cache.bin", "rb").read())
198198 atexit.register(lambda:
199199 open("my_cache.bin", "wb").write(cache.serialize())
200200 # Hint: The following optional line persists only when state changed
201201 if cache.has_state_changed else None
202202 )
203- app = ClientApplication(..., token_cache=cache)
203+ app = msal. ClientApplication(..., token_cache=cache)
204204 ...
205205
206206 :var bool has_state_changed:
You can’t perform that action at this time.
0 commit comments