UNPKG

kemal_jwt_auth_companion

Version:

A client-side companion to make autheticating with a Kemal server a breeze.

19 lines (17 loc) 505 B
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Fuckin kemal library test shit</title> <script src="/dev-build/kemal-jwt-auth.js" charset="utf-8"></script> <script type="text/javascript"> const { login, authFetch } = KemalAuth.default("", "/api/sign_in") let user = "test user" let pw = 'test user password' let p = login(user, pw) p.then(console.log).catch(console.error) </script> </head> <body> </body> </html>