chore: cleanup changeset and refactor
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user