fix: remove logs

This commit is contained in:
Lakhan Samani 2022-01-31 14:53:17 +05:30
parent 32d8b7c038
commit 40dcf67de9
2 changed files with 1 additions and 3 deletions

View File

@ -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';
}

View File

@ -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"`