Web Guide

Operate the Secryn dashboard and web experience.

Web Guide

Learn how to integrate Secryn into your web applications.

Overview

Secryn provides comprehensive tools for adding security features to your web applications.

Installation

Install Secryn via npm:

npm install secryn

Basic Usage

import { Secryn } from 'secryn'

const secryn = new Secryn({
  apiKey: 'your-api-key'
})

Authentication

Implement secure authentication in your web applications:

  • OAuth 2.0 integration
  • JWT token management
  • Session handling
  • Multi-factor authentication

Security Best Practices

  • Always use HTTPS in production
  • Never expose API keys in client-side code
  • Validate and sanitize user input
  • Use environment variables for sensitive data
  • Implement CORS policies properly

Framework Integration

React

import { SecrynProvider } from 'secryn/react'

function App() {
  return (
    <SecrynProvider apiKey={process.env.REACT_APP_SECRYN_KEY}>
      {/* Your app */}
    </SecrynProvider>
  )
}

Vue

import { createSecryn } from 'secryn/vue'

const secryn = createSecryn({
  apiKey: process.env.VUE_APP_SECRYN_KEY
})

app.use(secryn)

Next Steps