invalidate()
Inmediately invalidates a session.
Declaration
func invalidate() async throwsDiscussion
Call this method when your app no longer needs a credential session. The system automatically invalidates a session when it deallocates, or when it encounters underlying errors.
When a session invalidates, its event stream also invalidates and deallocates.
You can invalidate a session while in any session state.