0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/elements/index.html

29 lines
891 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logto elements dev page</title>
<link rel="stylesheet" href="src/account/style.css">
<script type="module" src="src/account/index.ts"></script>
</head>
<body style="background-color: #ecebf5;">
<logto-account-provider>
<logto-account-center></logto-account-center>
</logto-account-provider>
</body>
<script type="module">
import { LogtoAccountApi } from './src/account/api/index.ts';
// Replace with your logto endpoint when developing locally
const LOGTO_ENDPOINT = 'TEST_LOGTO_ENDPOINT';
const ACCESS_TOKEN = 'TEST_ACCESS_TOKEN';
const provider = document.querySelector('logto-account-provider');
const api = new LogtoAccountApi(LOGTO_ENDPOINT, () => ACCESS_TOKEN);
provider.accountApi = api;
</script>
</html>