2025-02-21 14:52:21 +00:00
|
|
|
package auth
|
|
|
|
|
2025-02-28 14:01:12 +00:00
|
|
|
import (
|
|
|
|
"git.mstar.dev/mstar/linstrom/storage"
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
2025-02-21 14:52:21 +00:00
|
|
|
|
|
|
|
type Authentication struct {
|
2025-02-28 14:01:12 +00:00
|
|
|
// For when in-depth access is needed
|
2025-02-21 14:52:21 +00:00
|
|
|
db *gorm.DB
|
2025-02-28 14:01:12 +00:00
|
|
|
// Primary method to acquire account data
|
|
|
|
store *storage.Storage
|
2025-02-21 14:52:21 +00:00
|
|
|
}
|
|
|
|
|
2025-02-28 14:01:12 +00:00
|
|
|
func NewAuth(db *gorm.DB, store *storage.Storage) *Authentication {
|
|
|
|
return &Authentication{db, store}
|
2025-02-21 14:52:21 +00:00
|
|
|
}
|