fix: await auth.set to prevent race condition when setting API key (#8075)
This commit is contained in:
@@ -225,7 +225,7 @@ function ApiMethod(props: ApiMethodProps) {
|
|||||||
}
|
}
|
||||||
onConfirm={async (value) => {
|
onConfirm={async (value) => {
|
||||||
if (!value) return
|
if (!value) return
|
||||||
sdk.client.auth.set({
|
await sdk.client.auth.set({
|
||||||
providerID: props.providerID,
|
providerID: props.providerID,
|
||||||
auth: {
|
auth: {
|
||||||
type: "api",
|
type: "api",
|
||||||
|
|||||||
Reference in New Issue
Block a user