Skip to content
/ my-site Public template

Start using LENS with this template HTML/CSS/JS website.

License

Notifications You must be signed in to change notification settings

LENSAuth/my-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LENS App

This is a template HTML/CSS/JS website that demonstrates how to use LENS for authentication.

Prerequisites

  • A web browser

Installation

  1. Clone the repository:

    git clone https://github.com/LENSAuth/my-site.git
    cd my-site

Running the App

  1. Open index.html in your web browser.

Project Structure

  • index.html: Main HTML file that sets up the structure of the web page.
  • assets/script.js: JavaScript file that handles the LENS authentication and popup window.
  • assets/style.css: CSS file for styling the web page.
  • .gitignore: Specifies files and directories to be ignored by Git.

Usage

Popup Window

  • The index.html file includes a script that opens a popup window to https://lens.admin-host.com and listens for messages from this origin.
  • When a message is received from the popup, it is logged to the console and displayed on the page.

Notes

  • Ensure that the domain you are using is registered with LENS. For testing purposes, you can register localhost.
  • The browser logs the status and received data to the console.

License

This project is licensed under the MIT License.

About

Start using LENS with this template HTML/CSS/JS website.

Resources

License

Stars

Watchers

Forks