This tutorial explains how a provider accepts an operator invitation, verifies their email with OTP, activates their account, and is redirected to the provider dashboard.
Invite tokenEmail verificationOTPActivation
Provider accept page · /provider/accept?token=...
Page overview
Accept a provider invitation using token and OTP
01
Purpose — lets a service provider accept an invitation from an operator.
Token source — reads the invite token from the URL search parameter.
Invite lookup — fetches invitation information from the provider accept API.
Email verification — sends a provider OTP to the invited email.
Activation — after OTP verification, the account is activated and invite token is cleared.
Redirect — after success, provider is redirected to their dashboard.
Best use: Send this link to new providers so they can activate their BookMyWave provider dashboard without manual setup.
What you see
Bookmywave
You've been invited
Tooup Sailing has invited you as their preferred Catering on Bookmywave.
Your email
provider@example.com
Provider accept page · Activation state machine
Acceptance flow
The page moves through loading, info, otp, done, and error states
02
loading — initial state while the token is checked.
info — invitation is valid and provider is not active yet.
otp — OTP has been sent and user must enter the code.
done — account activated successfully and redirect is scheduled.
invalid — token missing, invalid, already used, or lookup failed.
already_active — provider account exists and is already active.
Flow states
1
Loading
Check token
2
Info
Show invite
3
OTP
Verify email
✓
Done
Activate account
!
Invalid
Bad token
Provider accept page · Loading token
Loading invitation
Initial invite-token check
03
useSearchParams — reads token from the URL.
No token — immediately switches to invalid state.
Invite fetch — requests invite details using the token.
Success — stores invite data and pre-fills contact email.
Provider already active — sends user to already_active state instead of info state.
Fetch failure — shows invalid invite message.
Loading card
Bookmywave
Loading invitation...
Provider accept page · Valid invitation info
Invitation info state
Shows who invited the provider and which category they are invited for
04
Title — “You've been invited”.
Operator name — shows invite.operator_name as the inviting operator.
Category — shows invite.category, for example Catering, DJ, Photography, or another provider category.