Redirect when already authenticated
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user