chore: cleanup changeset and refactor

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2025-02-18 15:09:27 +01:00
parent edb88e21d2
commit 0afc4f21d8
3 changed files with 9 additions and 12 deletions
@@ -135,7 +135,7 @@ export const oidcAuthenticator = createOAuthAuthenticator({
async start(input, ctx) {
const { initializedPrompt, promise } = ctx;
const { helper, strategy } = await promise;
const { helper } = await promise;
const options: Record<string, string> = {
scope: input.scope,
state: input.state,
@@ -146,15 +146,8 @@ export const oidcAuthenticator = createOAuthAuthenticator({
options.prompt = prompt;
}
return new Promise((resolve, reject) => {
strategy.error = reject;
return helper
.start(input, {
...options,
})
.then(resolve)
.catch(reject);
return helper.start(input, {
...options,
});
},