Skip to content

Commit 7ffdf21

Browse files
authored
fix: Sign in fails when user is auto confirmed after sign up (#72)
1 parent 24f28b8 commit 7ffdf21

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ on:
88

99
jobs:
1010
unit-test-ios:
11-
1211
runs-on: macos-latest
13-
1412
steps:
1513
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1614
- name: Unit test Authenticator on iOS
@@ -24,15 +22,13 @@ jobs:
2422
cd ${{ github.workspace }}
2523
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-iphonesimulator/Authenticator.o > Authenticator-Coverage.lcov
2624
- name: Upload Report
27-
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
25+
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
2826
with:
2927
flags: Authenticator
30-
verbose: true
28+
token: ${{ secrets.CODECOV_TOKEN }}
3129

3230
unit-test-macos:
33-
3431
runs-on: macos-latest
35-
3632
steps:
3733
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3834
- name: Unit test Authenticator on macOS

Sources/Authenticator/States/SignUpState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public class SignUpState: AuthenticatorBaseState {
5151
password: password,
5252
options: .init(userAttributes: attributes)
5353
)
54-
let nextStep = try await nextStep(for: result)
55-
setBusy(false)
5654
credentials.username = username
5755
credentials.password = password
56+
let nextStep = try await nextStep(for: result)
57+
setBusy(false)
5858
authenticatorState.setCurrentStep(nextStep)
5959
} catch {
6060
log.error("Unable to Sign Up")

0 commit comments

Comments
 (0)