refactor: move session management to dedicated database module

This commit is contained in:
Prad Nukala committed 2024-12-10 13:40:41 -05:00
1 parent 518109e9df
commit c67a7823a6
16 files changed
+39 -57

No files matched your search

+3 -1
View File
@@ -7,10 +7,12 @@ import (
session "github.com/onsonr/sonr/internal/vault/session"
)
func HandleIndex(c echo.Context) error {
func Handler(c echo.Context) error {
// TODO: Create views
if isInitial(c) {
// return response.TemplEcho(c, index.InitialView())
}
// TODO: Add authorization check
if isExpired(c) {
// return response.TemplEcho(c, index.ReturningView())
}