iltio
TypeScript icon, indicating that this package has built-in type declarations

3.4.4 • Public • Published

iltio

iltio Authentication Plugin

React, React Native, Vue, Svelte and Next.js and plugins to integrate iltio.com Authentication into any website or application.

npm install iltio

Register for your APP_TOKEN and check out the detailed documentation at iltio.com/getting-started.

React

import { Authentication } from 'iltio/react'

export function MyAuthentication() {
  return (
    <Authentication
      configuration={{ token: APP_TOKEN }}
      onSuccess={(name, token) => {
        redirect('/overview', { name })
      }}
    />
  )
}

React Native

import { Authentication } from 'iltio/native' // Requires "unstable_enablePackageExports" in metro configuration.
import { Authentication } from 'iltio/dist/native/index.js' // Fallback without exports.

export const MyForm = () => <Authentication {...} />

Vue

<script>
import Authentication from 'iltio/vue'
</script>

<template>
  <Authentication :configuration="{ token: 'demo' }" :on-success="(name) => console.log(name)" />
</template>

Svelte

<script>
  import Authentication from 'iltio/svelte'
</script>

<Authentication configuration={{ token: 'demo' }} onSuccess={(name) => console.log(name)} />

Package Sidebar

Install

npm i iltio

Weekly Downloads

20

Version

3.4.4

License

MIT

Unpacked Size

530 kB

Total Files

79

Last publish

Collaborators

  • tobua