Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
asafshen committed Aug 21, 2023
1 parent f1fcee5 commit 052beee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Authenticate users using a password.
To create a new user that can later sign in with a password:

```swift
let authResponse = try await descope.password.signUp(loginId: "[email protected]", password: "securePassword123!", details: SignUpDetails(
let authResponse = try await Descope.password.signUp(loginId: "[email protected]", password: "securePassword123!", details: SignUpDetails(
name: "Andy Rhoads"
))
```
Expand All @@ -313,29 +313,29 @@ let authResponse = try await descope.password.signUp(loginId: "[email protected]"
Authenticate an existing user using a password:

```swift
let authResponse = try await descope.password.signIn(loginId: "[email protected]", password: "securePassword123")
let authResponse = try await Descope.password.signIn(loginId: "[email protected]", password: "securePassword123")
```

#### Update Password

If you need to update a user's password:

```swift
try await descope.password.update(loginId: "[email protected]", newPassword: "newSecurePassword456", refreshJwt: "yourRefreshJWT")
try await Descope.password.update(loginId: "[email protected]", newPassword: "newSecurePassword456", refreshJwt: "yourRefreshJWT")
```

#### Replace Password

To replace a user's password by providing their current password:

```swift
let authResponse = try await descope.password.replace(loginId: "[email protected]", oldPassword: "SecurePassword123!", newPassword: "NewSecurePassword456!")
let authResponse = try await Descope.password.replace(loginId: "[email protected]", oldPassword: "SecurePassword123!", newPassword: "NewSecurePassword456!")
```

#### Send Password Reset Email

Initiate a password reset by sending an email:

```swift
try await descope.password.sendReset(loginId: "[email protected]", redirectURL: "exampleauthschema://my-app.com/handle-reset")
try await Descope.password.sendReset(loginId: "[email protected]", redirectURL: "exampleauthschema://my-app.com/handle-reset")
```

0 comments on commit 052beee

Please sign in to comment.