open-index/open-npm huggingface dataset:
npm package: @kmobi/client
Description: ```bash npm install @kmobi/client ```
Latest version: 0.0.7

# Client SDK for the KodMobi service

## Installation

### NPM

```bash
npm install @kmobi/client
```

### Yarn

```bash
yarn add @kmobi/client
```

## Usage

### Import

```ts
import {createKodMobiClient} from "@kmobi/client"

const kmobiClient = createKodMobiClient({
  apiKey: '',
  kmobiUrl: '',
  customUrl: '',
})

await kmobiClient.createCode({
  phone: '+79999999999',
})
```
npm package: @kmobi/vue
Description: ```bash npm install @kmobi/vue ```
Latest version: 0.0.16

# Vue 3 UI Component for the KodMobi Auth

## Installation

### NPM

```bash
npm install @kmobi/vue
```

### Yarn

```bash
yarn add @kmobi/vue
```

## Usage

### Install plugin

App entrypoint (main.ts)

```ts
import {createApp} from 'vue'
import App from './App.vue'

import kodMobiPlugin from "@kmobi/vue"
import "@kmobi/vue/index.css"


createApp(App).use(kodMobiPlugin).mount('#app')
```

### Use component

App.vue

```vue

<template>
  <div>
    <div>My awesome APP</div>
    <KodMobiAuth
      :kmobiUrl='kmobiUrl'
      :customUrl='customUrl'
      :api-key='apiToken'
      @success='handleToken'
      <!-- Optional. Default: true. Is show screen with the success message. If false the loader will be shown -->
      :show-success-screen='true'
    />
  </div>
</template>
<script setup lang='ts'>
import {KodMobiAuth} from "@kmobi/vue";
import {ref} from "vue";

const token = ref<string>('')
const apiToken = "" // Your API token
const kmobiUrl = "https://api.kod.mobi" // KodMobi API base url

const handleToken = (tokenOBj: {token: string}) => {
  // Token for the Verify endpoint
  token.value = tokenOBj.token
}
</script>
```