Skip to main content
Use this hook when you need to control the login modal programmatically. It’s useful for protected actions that require authentication, like adding items to a wishlist or accessing account-specific features.
Let your agent build it. The Ollie Shop skill ships with projects created by npx create-ollie-shop and knows the template already renders the modal, so your component only decides when it opens.
Prompt
Don’t have the skill yet? Install it.

Import

Return Value

OpenLoginOptions

Usage

Example

A favorites button that prompts the user to log in before adding an item to their wishlist.