The synchronized will prevent from simultaneous refresh of the token. But will it prevent for `authenticate` called multiple times? Should you check in authenticate that previous refresh just happened?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

๐Ÿ‡บ๐Ÿ‡ฆ Eugen Martynov
๐Ÿ‡บ๐Ÿ‡ฆ Eugen Martynov

Written by ๐Ÿ‡บ๐Ÿ‡ฆ Eugen Martynov

Stand with Ukraine! The loving XP husband and freelance Android/Kotlin engineer.

Responses (1)

Write a response