Passwordless third party logins - how do I authenticate a Zucoin wallet on my website or app? (using PHP)

  • Code language: PHP, see also: JavaScript (DOM)
  • Available since: Zucoin wallet app v177
  • Applies to feature version: v1+
  • Document version: v4
  • Updated: 8 July 2026

The Zucoin wallet app can pass signed wallet authentication data through to third-party websites and services.

The user starts this flow in the Zucoin wallet app, for example by opening a selected website or service inside an HTML iframe.

The link to the website includes additional URL query parameters (for example: ?aaa=bbb&ccc=ddd).

A website or service can check this incoming information and use it to authenticate a Zucoin wallet user.

For example, the result of this authentication can be used to sign a user into an existing account, create an account if one does not exist, and then load a dashboard, product page, or other point of interest.

Web developers can use the following code example to authenticate incoming data from the Zucoin wallet app.

Here's a simple example of how to do it:

You can then use the value of key_public__base64urlsafe as a user ID.

Developers should also check when the authentication data was cryptographically signed.

For example, login credentials from two weeks ago should fail. Future-dated timestamps should fail too.

You can use the following example to check if an authentication request is within 30 seconds of the current time:

Once verification succeeds, you can use this data, such as the user's public key, in your website or app to check whether a user exists and run the appropriate process.

If the user exists, you can take them to their home screen, account, or dashboard page.

If the user doesn't exist, create an entry in your database for them first, then take them to their home screen, account, or dashboard page.

That's it—let us know what you build with it!

Disclaimer: Of course, this is not advice, financial or otherwise. It’s also important to consider the risks and challenges associated with any potential benefits.