chore: Rename getSamlAuthProviders as listSamlAuthProviders query

This commit is contained in:
Faruk AYDIN
2023-08-07 16:22:00 +02:00
parent 40e10cc270
commit 4b706e004d
7 changed files with 23 additions and 24 deletions

View File

@@ -12,8 +12,7 @@ const isAuthenticated = rule()(async (_parent, _args, req) => {
const { userId } = jwt.verify(token, appConfig.appSecretKey) as {
userId: string;
};
req.currentUser = await User
.query()
req.currentUser = await User.query()
.findById(userId)
.leftJoinRelated({
role: true,
@@ -35,7 +34,7 @@ const authentication = shield(
Query: {
'*': isAuthenticated,
getAutomatischInfo: allow,
getSamlAuthProviders: allow,
listSamlAuthProviders: allow,
healthcheck: allow,
},
Mutation: {