@Anastasija Mihajlenko Apologies for the delay in reviewing this post., researched on your ask came across the following articles, just check if it helps
https://github.com/AzureAD/microsoft-authentication-library-for-objc/issues/1139#:~:text=MSALPublicClientApplication.cancelCurrentWebAuthSession()
https://learn.microsoft.com/en-us/azure/active-directory/develop/migrate-objc-adal-msal
https://azuread.github.io/microsoft-authentication-library-for-objc/index.html
Let me know if you have any further questions, please feel free to post back.