iltio
v3.4.4
Published
Authentication for the Web and Mobile.
Downloads
476
Maintainers
Readme
iltio
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)} />