eHealthAfrica/direct-delivery-dashboard

View on GitHub
src/app/components/auth/auth.config.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

angular.module('auth')
  .config(function (config, ehaCouchDbAuthServiceProvider) {
    ehaCouchDbAuthServiceProvider.config({
      url: config.baseUrl,
      localStorageNamespace: config.name,
      adminRoles: config.roles.admin.roles,
      userRoles: config.roles.user.roles,
      defaultHttpFields: {
        withCredentials: true
      }
    })
  })