Skip to content

Documentation / expo / useLogin

Function: useLogin()

useLogin(): UseLoginInterface

A hook to trigger a login flow with Privy-powered UI. The login method returned by it is async and resolved with the result of the login flow.

Depends on PrivyElements being mounted in the component tree.

Returns

UseLoginInterface

An object with a login method to trigger the login flow.