2024-04-12 15:48:51 -07:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import "templ-test/models"
|
2024-04-13 11:50:05 -07:00
|
|
|
import "templ-test/views/layout"
|
2024-04-12 15:48:51 -07:00
|
|
|
|
|
|
|
templ ShowCookie(m models.AllCookies) {
|
2024-04-14 18:38:09 -07:00
|
|
|
@layout.WithLayout("Cookie Explorer") {
|
2024-04-12 15:48:51 -07:00
|
|
|
<h2>These are stored as cookies</h2>
|
2024-04-14 19:36:30 -07:00
|
|
|
<h3>JWT Values</h3>
|
2024-04-12 15:48:51 -07:00
|
|
|
<p>Username: { m.Username }</p>
|
|
|
|
<p>JWT Token: { m.Token }</p>
|
|
|
|
<p>RefreshToken: { m.RefreshToken }</p>
|
2024-04-14 19:36:30 -07:00
|
|
|
<h3>User Settings</h3>
|
|
|
|
<p>DarkMode: { m.DarkMode }</p>
|
2024-04-12 15:48:51 -07:00
|
|
|
}
|
|
|
|
}
|