Skip to content

Commit

Permalink
Fix types in mock
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger committed Mar 10, 2021
1 parent 3ed896d commit e65a8d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
* 2.0.
*/

import { AttributeName } from '../../types';

export const asRoleMapping = {
id: null,
attributeName: 'role',
attributeName: 'role' as AttributeName,
attributeValue: ['superuser'],
authProvider: ['*'],
roleType: 'owner',
Expand All @@ -23,7 +25,7 @@ export const asRoleMapping = {

export const wsRoleMapping = {
id: '602d4ba85foobarbaz123',
attributeName: 'username',
attributeName: 'username' as AttributeName,
attributeValue: 'user',
authProvider: ['*', 'other_auth'],
roleType: 'admin',
Expand Down

0 comments on commit e65a8d0

Please sign in to comment.