* feat(web): improve session retrieval performance
Switch to using `getServerSession` which avoids a HTTP round trip to retrieve session details.
Additionally, migrate deprecated `app/lib/auth` calls to to `@calcom/lib` package.
* fix: update failing test and lint
* Consolidates auth code in features
* Update yarn.lock
* Update packages/trpc/server/createContext.ts
* Oopsie
---------
Co-authored-by: zomars <zomars@me.com>
* Removed emptyscreen component v1 version, migrated pages that still used it to v2, and removed v1 of workflow pages and components.
* updated workflow pages imports to remove v2 from path.
* Deleted v1 switch component, deleted v1 api-keys components, deleted old web integrations components that were unused.
* Removed v1 list component.
* Fixed event workflows tab path.
* Fixed import path for button in sandbox page.
* Cleanup and type fixes
* Making explicit indexes
* UI import migrations
* More import fixes
* More import fixes
* Submodule sync
* Type fixes
* Build fixes
Co-authored-by: zomars <zomars@me.com>
* Wait for current_password input to be visible
* Login flow remove duplication + small fix change-password
* Made hash-my-url more robust
* Wait until locale is ready to resolve test flackiness
* Added waitForSelector before trying to fill inputs
* feat: add ApiKey model for new Api auth, owned by a user
* fix: remove metadata:Json and add note:String instead in new apiKey model
* fix: rename apiKey to apiKeys in moder User relation in schema.prisma
* feat: add hashedKey to apiKey and lastUsedAt datetime to keep track of usage of keys and makiung them securely stored in db
* fix 30 day -> 30 days in expiresAt
* feat: api keys frontend in security page
* adds hashedKey to api key model, add frontend api keys in security page
* Make frontend work to create api keys with or without expiry, note, defaults to 1 month expiry
* remove migration for now, add env.example to swagger, sync api
* feat: hashed api keys
* fix: minor refactor and cleanup in apiKeys generator
* add api key success modal
* sync apps/api
* feat: We have API Keys in Security =)
* remove swagger env from pr
* apps api sync
* remove comments in password section
* feat: migration for api keys schema
* sync api w main
* delete apps/api
* add back apps/api
* make min date and disabled optional props in datepicker
* feat fix type check errors
* fix : types
* fix: rmeove renaming of verificationrequest token indexes in migration
* fix: remove extra div
* Fixes for feedback in PR
* fix button />
* fix: rename weird naming of translation for you_will_only_view_it_once
* fix: remove ternary and use && to avoid null for false
* fix sync apps/api with main not old commit
* fix empty className
* fix: remove unused imports
* fix remove commented jsx fragment close
* fix rename editing
* improve translations
* feat: adds beta tag in security tab under api keys
* fix: use api keys everywhere
* fix: cleanup code in api keys
* fix: use watch and controller for neverexpires/datepicker
* Fixes: improve api key never expires
* add back change password h2 title section in security page
* fix update env API_KEY_ prefix default to cal_
* fix: improve eidt api keys modal
* fix: update edit mutation in viewer.apiKeys
* Update apps/web/ee/components/apiKeys/ApiKeyListItem.tsx
Co-authored-by: Alex van Andel <me@alexvanandel.com>
* fix: item: any to pass build
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>