Open vahid-forghani opened 2 years ago
https://github.com/amezenin/encyclopedia-kn/blob/7e864bcb59032941b1b5756c027f829ee9387d52/src/main/java/com/knits/product/security/SecurityUser.java#L23
better you use GrantedAuthority here so if in future you want to use another type of GrantedAuthority you can. because now you used and specific implementation of GrantedAuthority which is SimpleGrantedAuthority
GrantedAuthority
SimpleGrantedAuthority
https://github.com/amezenin/encyclopedia-kn/blob/7e864bcb59032941b1b5756c027f829ee9387d52/src/main/java/com/knits/product/security/SecurityUser.java#L23
better you use
GrantedAuthority
here so if in future you want to use another type ofGrantedAuthority
you can. because now you used and specific implementation ofGrantedAuthority
which isSimpleGrantedAuthority