
Runik SDK
Built for Runik API v0.3.6

Usage
import { Client, Users } from 'runik'
const client = new Client()
.setEndpoint('http://localhost:9000/api/v1')
.setKey('API_KEY')
const users = new Users(client)
await users.get()
await users.signUp(
'infrared.studio@skiff.com',
'myPassword',
'http://localhost:5173/verify'
)
const user = await users.signIn('infrared.studio@skiff.com', 'myPassword', true)
await user.get()
await user.getSessions()
await user.updateEmail('newemail@example.com', 'http://localhost:5173/verify')
await user.updatePassword('myPassword', 'newPassword')
await user.deleteSessions('myPassword')
await user.signOut()
await user.delete('myPassword')