Skip to content

Commit

Permalink
fix: Sign in fails when user is auto confirmed after sign up (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas authored May 7, 2024
1 parent 24f28b8 commit 7ffdf21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ on:

jobs:
unit-test-ios:

runs-on: macos-latest

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Unit test Authenticator on iOS
Expand All @@ -24,15 +22,13 @@ jobs:
cd ${{ github.workspace }}
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-iphonesimulator/Authenticator.o > Authenticator-Coverage.lcov
- name: Upload Report
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
with:
flags: Authenticator
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

unit-test-macos:

runs-on: macos-latest

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Unit test Authenticator on macOS
Expand Down
4 changes: 2 additions & 2 deletions Sources/Authenticator/States/SignUpState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public class SignUpState: AuthenticatorBaseState {
password: password,
options: .init(userAttributes: attributes)
)
let nextStep = try await nextStep(for: result)
setBusy(false)
credentials.username = username
credentials.password = password
let nextStep = try await nextStep(for: result)
setBusy(false)
authenticatorState.setCurrentStep(nextStep)
} catch {
log.error("Unable to Sign Up")
Expand Down

0 comments on commit 7ffdf21

Please sign in to comment.