use-rainbowkit-vue-siwe-auth-provider
v1.1.5
Published
An auth adapter for rainbowkit vue plugin.
Downloads
5
Readme
Rainbowkit Vue Siwe Auth Provider
An auth adapter for rainbowkit vue plugin.
Installation
Install auth adapter and its rainbowkit vue, viem and vue-auth3 peer dependencies.
npm install viem vue-auth3 use-rainbowkit-vue use-rainbowkit-vue-siwe-auth-provider
Usage
import { RainbowKitVuePlugin } from "use-rainbowkit-vue";
import { RainbowKitVueSiweAuthAdapterPlugin } from 'use-rainbowkit-vue-siwe-auth-provider';
const { create: createAuthAdapter } = RainbowKitVueSiweAuthAdapterPlugin();
const authAdapter = createAuthAdapter(app);
app.use(RainbowKitVuePlugin,{
auth: {
allowAuthenticate: true,
authenticateAdapter: authAdapter,
}
})