first commit
This commit is contained in:
28
views/profile.ejs
Normal file
28
views/profile.ejs
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Server-Side User Profile</title>
|
||||
<style>
|
||||
body { font-family: sans-serif; padding: 2rem; background-color: #f0f2f5; }
|
||||
.container { max-width: 800px; margin: 0 auto; background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
|
||||
pre { background: #f8f9fa; padding: 1rem; border-radius: 4px; overflow-x: auto; }
|
||||
.btn { display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 4px; margin-top: 1rem; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Server-Side User Profile</h1>
|
||||
<p><strong>Sub:</strong> <%= user.userinfo.sub %></p>
|
||||
<p><strong>Name:</strong> <%= user.userinfo.name || 'N/A' %></p>
|
||||
<p><strong>Email:</strong> <%= user.userinfo.email || 'N/A' %></p>
|
||||
|
||||
<h3>Raw User Info</h3>
|
||||
<pre><%= JSON.stringify(user.userinfo, null, 2) %></pre>
|
||||
|
||||
<h3>Tokens</h3>
|
||||
<pre><%= JSON.stringify(user.tokenset, null, 2) %></pre>
|
||||
|
||||
<a href="/" class="btn">홈으로 이동</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user