Skip to content

Commit b7cb49e

Browse files
authored
allow sign-in with null request (#482)
Co-authored-by: Seth Back <[email protected]>
1 parent 3e14178 commit b7cb49e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

go/services/account_service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ type accountBase struct {
5050

5151
// SignIn to a given account
5252
func (a *accountBase) SignIn(userContext context.Context, request *sdk.SignInRequest) (string, sdk.ConfirmationMethod, error) {
53+
if request == nil {
54+
request = &sdk.SignInRequest{}
55+
}
56+
5357
if len(request.EcosystemId) == 0 {
5458
request.EcosystemId = a.GetServiceOptions().DefaultEcosystem
5559
}

0 commit comments

Comments
 (0)