-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added one commit * added composer.lock * added changes to sample app * added testing * added more documentation * added sample app code * added files * added files * added files * added files * added files * added files * added README changes * added README changes * added refresh logic * added README
- Loading branch information
Showing
4 changed files
with
119 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
<?php | ||
session_start(); | ||
session_destroy(); | ||
?> | ||
|
||
// Redirect back to home page | ||
header('Location: /index.php'); | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="https://unpkg.com/@descope/web-component@latest/dist/index.js"></script> | ||
<script src="https://unpkg.com/@descope/web-js-sdk@latest/dist/index.umd.js"></script> | ||
<script type="text/javascript" src="../static/descope.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
logout().then((resp) => { | ||
// Redirect back to home page | ||
window.location = "/index.php"; | ||
}); | ||
|
||
async function logout() { | ||
const resp = await sdk.logout(); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
margin: 0; | ||
background-color: #f2f2f2; /* Light grey background */ | ||
} | ||
h1 { | ||
margin-bottom: 30px; | ||
} | ||
.dashboard-button { | ||
padding: 10px 20px; | ||
font-size: 1.2em; | ||
background-color: #008cba; /* Blue background */ | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
} | ||
.dashboard-button:hover { | ||
background-color: #007b9e; /* Darken background */ | ||
} | ||
.container { | ||
text-align: center; | ||
} | ||
.session-token-container { | ||
background-color: #333; | ||
color: #fff; | ||
padding: 10px; | ||
border-radius: 5px; | ||
width: 80%; | ||
word-wrap: break-word; | ||
margin: 0 auto; | ||
} | ||
#container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
} |