Skip to main content

AuthContext Service

The @rhapsody/auth-context package is now available and replaces the Devise Angular module. The service exposes multiple functions to get information on the currently authenticated user and their team. The auth context is a huge step toward getting off of Angular as most code today, Angular or not, relies on Devise. All non-Angular code should use the auth context service instead of Devise from now on.

See the AuthContext README for documentation and examples.

The auth context service is written in Typescript and can be used in JavaScript and Typescript code. New code should use this service and any existing non-Angular code should be refactored to use this service as well. Existing Angular code referencing the Devise module can be left as-is.