Skip to main content

Wallet Integration

Calimero Private Shard are intergrated into the NEAR Wallet and users are able to authenticate via the NEAR Wallet.

We have built a demo example application which can be used as a tutorial for integration. The application can be found on and uses the Calimero Authentication SDK which is open-sourced: and published on npm:

Add the calimero-auth-sdk to you project by running:

yarn install calimero-auth-sdk


npm install calimero-auth-sdk

Once installed you will need to use the Calimero.isSignedIn() method to check if user has authorized with Calimero. In the example we render a Login button for the user to click on.

import React from 'react';

import { CalimeroAuth } from 'calimero-auth-sdk';

export default function Dashboard() {
if (CalimeroAuth.isSignedIn()) {
return <button onClick={CalimeroAuth.signOut}>

<a href='/login'>Login with NEAR</a>

The second part of the integration includes implementing a Login component which checks if the user has not signed in. Redirects the user to the NEAR wallet to authorize the connection with the Private Shard, once authorized it will redirect the user to this component and send the authorization request to the Calimero Authentication Service.

import { CalimeroAuth } from 'calimero-auth-sdk';

export default function Login() {
if (!CalimeroAuth.isSignedIn()) {
shardId: "testing.calimero",
walletUrl: "",
authServiceUrl: "http://localhost:1336"

return (
<div className="App">
<header className="App-header">