-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] CDD-2091: Ordinance survey maps #451
base: main
Are you sure you want to change the base?
Conversation
a1e8370
to
e24567d
Compare
e24567d
to
58c929f
Compare
src/app/api/proxy/map/route.ts
Outdated
token_type: z.string(), | ||
}) | ||
|
||
export async function POST() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the server side api endpoint that handles the oauth request to OSM
|
||
const proxyResponseSchema = z.object({ token: z.string(), expiresIn: z.string() }) | ||
|
||
async function getToken() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the client side request handler responsible for hitting the proxy api endpoint. It receives the token and expiration in the response. It will also refetch automatically after the token has expired.
46671d7
to
aa6f0ef
Compare
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Description
PR adding Ordinance Survey Maps behind a feature toggle. Also sneaked in boundary restrictions to all maps so users can't pan or zoom outside of UK.