v2.2.5: Refactors context to string type
Updates the context type from Resource to string for increased flexibility and compatibility. This change simplifies the handling of context data within the authentication process by allowing any string to be used as context instead of requiring a Resource object.