Concepts
Authentication

Authentication Concept

Song Turbo provides authentication for your application via the @dpc-turbo/auth package wrapper.

It provides the following functions

  • login(IAuthLoginRequest)

  • logout()

  • initializeAuth()

  • refreshToken()

  • useAuthLogin()

  • useRefreshToken()

For use by other packages it also exports two Redux slices (authSlice, and authApiSlice)

Some typescript types are avaialble in the @dpc-turbo/types package

@dpc-turb/auth is a wrapper for a Authenication Provider package.

For an example of implementation of an Authentication Provider see @dpc-turbo/firebase-auth.