diff --git a/packages/oauth/oauth-client/README.md b/packages/oauth/oauth-client/README.md
index c8c50fcb84b..5a1f900626a 100644
--- a/packages/oauth/oauth-client/README.md
+++ b/packages/oauth/oauth-client/README.md
@@ -61,7 +61,10 @@ const client = new OAuthClient({
throw new TypeError(`Unsupported algorithm: ${algorithm.name}`)
},
- requestLock: (name: string, fn: () => T | PromiseLike): Promise => {
+ requestLock: (
+ name: string,
+ fn: () => T | PromiseLike,
+ ): Promise => {
// This function is used to prevent concurrent refreshes of the same
// credentials. It is important to ensure that only one refresh is done at
// a time to prevent the sessions from being revoked.
@@ -74,13 +77,16 @@ const client = new OAuthClient({
declare const locks: Map>
const current = locks.get(name) || Promise.resolve()
- const next = current.then(fn).catch(() => {}).finally(() => {
- if (locks.get(name) === next) locks.delete(name)
- })
+ const next = current
+ .then(fn)
+ .catch(() => {})
+ .finally(() => {
+ if (locks.get(name) === next) locks.delete(name)
+ })
locks.set(name, next)
return next
- }
+ },
},
stateStore: {
diff --git a/packages/pds/src/mailer/templates/confirm-email.hbs b/packages/pds/src/mailer/templates/confirm-email.hbs
index 5cb68b3c37b..5fa9192c1d9 100644
--- a/packages/pds/src/mailer/templates/confirm-email.hbs
+++ b/packages/pds/src/mailer/templates/confirm-email.hbs
@@ -68,7 +68,7 @@
style="font-size:16px;line-height:1.4;margin:0px 0px;letter-spacing:0.25px;color:hsl(211, 24%, 34.2%);font-family:-apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;padding-top:12px;padding-bottom:12px;padding-right:32px"
>To confirm this email for your account, please enter the
code below in the app.
{{token}}
please enter the code below in the app along with
your password.
{{token}}
We received a request to update your PLC identity. Your
confirmation code is:
{{token}}
@{{handle}}.
{{token}}
To update the email for your account, enter the code below
in the app along with your new email.
{{token}}