Redirect when already authenticated

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-05 11:39:33 +04:00
parent 8df0e526ba
commit a388aa4999
11 changed files with 196 additions and 173 deletions

View File

@@ -15929,7 +15929,11 @@ func (ec *executionContext) _AssumeOrganizationSessionResult(ctx context.Context
}
return ec._OrganizationSessionCreated(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
if typedObj, ok := obj.(graphql.Marshaler); ok {
return typedObj
} else {
panic(fmt.Errorf("unexpected type %T; non-generated variants of AssumeOrganizationSessionResult must implement graphql.Marshaler", obj))
}
}
}
@@ -16022,7 +16026,11 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj
}
return ec._Connector(ctx, sel, obj)
default:
panic(fmt.Errorf("unexpected type %T", obj))
if typedObj, ok := obj.(graphql.Marshaler); ok {
return typedObj
} else {
panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj))
}
}
}

View File

@@ -3,7 +3,7 @@ package connect_v1
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.84
// Code generated by github.com/99designs/gqlgen version v0.17.86
import (
"context"
@@ -1687,7 +1687,6 @@ func (r *sCIMConfigurationResolver) Organization(ctx context.Context, obj *types
// Bridge is the resolver for the bridge field.
func (r *sCIMConfigurationResolver) Bridge(ctx context.Context, obj *types.SCIMConfiguration) (*types.SCIMBridge, error) {
if obj.Bridge == nil {
return nil, nil
}