New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

runik

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runik

SDK for Runik API

  • 0.3.17
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95.65%
Maintainers
1
Weekly downloads
 
Created
Source

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')

FAQs

Package last updated on 30 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc