DEV Community

Discussion on: Writing Clean Code

Collapse
 
programmingdive profile image
Programming Dive

I think in the first image you first check for authorization of the user and then check the scope. This way we will avoid code execution for unauthorized user.