auth0 / Auth0.swift

Auth0 SDK for Apple platforms
https://auth0.github.io/Auth0.swift
MIT License
345 stars 225 forks source link

Deprecate methods related to updating user attributes using the Management API #815

Closed Widcket closed 10 months ago

Widcket commented 10 months ago

📋 Changes

This PR marks as deprecated the patch(_:attributes:) method of the Management API client, as it's no longer possible to update user attributes such as email and password from native clients.

Also, the respective methods of the UserPatchAttributes class –taken as input by the above method– were also marked as deprecated. The only method of UserPatchAttributes that was not marked as deprecated is the one that allows setting new user_metadata values, as that's the only user attribute that can still be updated from native clients.

📎 References

See https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-tokens-for-single-page-applications -> talks about SPAs but also applies to native apps (both are public clients)

Screenshot 2023-12-16 at 19 26 37