Appearance
Logout
To logout an authenticated user, simply call:
swift
privy.user.logout()
swift
public protocol PrivyUser {
// Other privy user methods
/// Ends the session of the logged in Privy user.
func logout()
}
This will clear the user state and delete the persisted user session.