fix: remove logs
This commit is contained in:
parent
32d8b7c038
commit
40dcf67de9
|
@ -9,11 +9,9 @@ const Dashboard = lazy(() => import('./pages/dashboard'));
|
|||
export default function Root() {
|
||||
const { token, loading, config } = useAuthorizer();
|
||||
|
||||
console.log(config);
|
||||
useEffect(() => {
|
||||
if (token) {
|
||||
const url = new URL(config.redirectURL || '/app');
|
||||
console.log('=> url', url);
|
||||
if (url.origin !== window.location.origin) {
|
||||
window.location.href = config.redirectURL || '/app';
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ type Session struct {
|
|||
Key string `json:"_key,omitempty" bson:"_key,omitempty"` // for arangodb
|
||||
ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id"`
|
||||
UserID string `gorm:"type:char(36),index:" json:"user_id" bson:"user_id"`
|
||||
User User `json:"-" bson:"-"`
|
||||
User User `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"-" bson:"-"`
|
||||
UserAgent string `json:"user_agent" bson:"user_agent"`
|
||||
IP string `json:"ip" bson:"ip"`
|
||||
CreatedAt int64 `json:"created_at" bson:"created_at"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user