From 1c4fd847dc4bee780ddb3aef022e768f4a556aea Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Wed, 1 Apr 2026 19:10:18 +0700 Subject: [PATCH] Add OTP login page and auth guard for client cabinet --- app/app.vue | 7 +- app/composables/graphql/generated.ts | 332 ++++++++++++++++++ app/middleware/auth.global.ts | 14 + app/pages/login.vue | 178 ++++++++++ .../auth/request-login-code.graphql | 8 + .../operations/auth/verify-login-code.graphql | 12 + graphql/schema.graphql | 52 +++ nuxt.config.ts | 1 + server/api/graphql.post.ts | 2 + 9 files changed, 605 insertions(+), 1 deletion(-) create mode 100644 app/middleware/auth.global.ts create mode 100644 app/pages/login.vue create mode 100644 graphql/operations/auth/request-login-code.graphql create mode 100644 graphql/operations/auth/verify-login-code.graphql diff --git a/app/app.vue b/app/app.vue index edb3700..d78783e 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,6 +1,11 @@ + +