Albert Heijn: Log In
ah_loginLog in to Albert Heijn by starting a session, following the returned link and instructions, then submitting the copied appie:// code. Use it to check the signed-in account or switch after logout.
Instructions
Log in to Albert Heijn. Call without arguments to start. On the user's own computer this usually opens a login window that finishes the login by itself. Otherwise it returns the AH login link and step-by-step instructions: show them to the user as given, in order (the developer console must be open before they log in). The user then copies a link like appie://login-exit?code=...; call ah_login again with code set to that link (or just the code) to finish. Codes are single-use and expire quickly. If already logged in, returns the account name; to switch accounts, call ah_logout first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The appie://login-exit?code=... link the user copied after logging in, or just the code. Omit to start a login. |