fix(SW-3578): Fixed session issue when sas session expires
* fix(SW-3578): Fixed session issue when sas session expires
* base socialLogin auto-features on validSession and being linked
* remove unused object
* remove 'import server-only' for isValidSession() since it's only using passed data
* remove isValidClientSession()
Approved-by: Joakim Jäderberg
Approved-by: Anton Gunnarsson
feat(SW-3541): Do social login after login to SAS
* feat(auth): wip social login via curity
* Setup social login auth flow
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/curity-social-login
* Added support for getting scandic tokens and refresh them
* feat: Enhance social login and session management with auto-refresh and improved error handling
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/curity-social-login
* wrap layout in suspense
* revert app/layout.tsx
* fix import
* cleanup
* merge
* merge
* dont pass client_secret in the url to curity
* add state validation when doing social login through /authorize
* remove debug logging
Approved-by: Anton Gunnarsson
feat(SW-3520): Updated the footer
* feat(SW-3520): Updated links to route to scandic web
* feat(SW-3520): Updated the footer with language switcher
* feat(SW-3520): Updated the Contact-us link and removed double slash
Approved-by: Anton Gunnarsson
* feat(SW-3516): Include partnerLoyaltyNumber on bookings
- Added user context to BookingFlowProviders for user state management.
- Updated booking input and output schemas to accommodate new user data.
- Refactored booking mutation logic to include user-related information.
- Improved type definitions for better TypeScript support across booking components.
Approved-by: Anton Gunnarsson
feat(SW-2782): Updated header as per design, added language switcher and user menu
* feat(SW-2782): Updated header as per design, added language switcher and user menu
* feat(SW-2782): Updated UI as per design
* feat(SW-2782): Optimised code with use of Popover and modal from RAC
Approved-by: Anton Gunnarsson
fix: Update route info inside store before checking if path or lang has changed
* fix: Update route info inside store before checking if path or lang has changed
Approved-by: Linus Flood
fix(BOOK-399): Default language to 'en' when we've ended up in a invalid state
* fix(BOOK-399): Default language to 'en' when we've ended up in a invalid state
* PR fixes: reuse types and include local dev error message
Approved-by: Anton Gunnarsson
Approved-by: Linus Flood
feat(SW-3505): add endpoint for getting eurobonus profile
* feat(SW-3505): add endpoint for getting eurobonus profile
* make sure we add loginType to session
* no need to run zod parsing twice
* Make SAS environment variables mandatory
Approved-by: Anton Gunnarsson
Feat/SW-3461 setup auth with sas eurobonus
* feat(SW-3461): Setup auth for sas eurobonus
* .
* feat: setup auth towards SAS
* Fix auth via SAS and add logout route
* .
* merge
* auth via SAS
* fix powered by scandic logo
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feat/SW-3461-setup-auth-with-sas-eurobonus
* Include access_token in jwt after successful login
* merge
Approved-by: Anton Gunnarsson
feat(SW-2873): Move select-hotel to booking flow
* crude setup of select-hotel in partner-sas
* wip
* Fix linting
* restructure tracking files
* Remove dependency on trpc in tracking hooks
* Move pageview tracking to common
* Fix some lint and import issues
* Add AlternativeHotelsPage
* Add SelectHotelMapPage
* Add AlternativeHotelsMapPage
* remove next dependency in tracking store
* Remove dependency on react in tracking hooks
* move isSameBooking to booking-flow
* Inject searchParamsComparator into tracking store
* Move useTrackHardNavigation to common
* Move useTrackSoftNavigation to common
* Add TrackingSDK to partner-sas
* call serverclient in layout
* Remove unused css
* Update types
* Move HotelPin type
* Fix todos
* Merge branch 'master' into feat/sw-2873-move-selecthotel-to-booking-flow
* Merge branch 'master' into feat/sw-2873-move-selecthotel-to-booking-flow
* Fix component
Approved-by: Joakim Jäderberg