0.3.17 • Published 3 months ago

runik v0.3.17

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

banner

Runik SDK

Built for Runik API v0.3.9

Lines of code Discord Downloads

Usage

import { Client, Users } from 'runik'
const client = new Client()
	.setEndpoint('http://localhost:9000/api/v1')
	.setKey('API_KEY')
const users = new Users(client)

// Get all users
await users.get()

// Create user
await users.signUp(
	'infrared.studio@skiff.com',
	'myPassword',
	'http://localhost:5173/verify'
)

// Login to user
const user = await users.signIn('infrared.studio@skiff.com', 'myPassword', true) // set true to make the session expire

// Get logged in user
await user.get()

// Get user sessions
await user.getSessions()

// Update signed in users email
await user.updateEmail('newemail@example.com', 'http://localhost:5173/verify')

// Update signed in users password
await user.updatePassword('myPassword', 'newPassword')

// Sign out on all devices
await user.deleteSessions('myPassword')

// Sign out of current session
await user.signOut()

// Delete signed in user
await user.delete('myPassword')
0.3.9

3 months ago

0.3.17

3 months ago

0.3.16

3 months ago

0.3.14

3 months ago

0.3.13

3 months ago

0.3.12

3 months ago

0.3.11

3 months ago

0.3.10

3 months ago

0.3.8

4 months ago

0.3.6

5 months ago

0.3.5

5 months ago

0.3.7

5 months ago

0.3.4

5 months ago

0.3.2

5 months ago

0.3.1

5 months ago

0.3.3

5 months ago

0.2.6

5 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.1.7

6 months ago

0.1.5

6 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago