This works very well, just need to determine what routes will be protected and such. For now, a simple system is setup, with more to come. For now, this is a WIP and needs some light work. But auth is almost complete.
11 lines
243 B
Go
11 lines
243 B
Go
package domain
|
|
|
|
import (
|
|
domain "github.com/haydenhargreaves/Potion/internal/domain/user"
|
|
)
|
|
|
|
type AuthService interface {
|
|
GetGoogleAuthUrl() string
|
|
GoogleAuthSuccess(state, code string) (string, domain.User, domain.GoogleUserInfo, error)
|
|
}
|