Skip to content

Commit be4070b

Browse files
authored
Merge pull request #23 from AzureAD/mention-import
Mention import for an inline sample
2 parents 8f66e31 + 108258e commit be4070b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

msal/token_cache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)