I followed the instructions in How do I add a default role to a new user on first login? to add a Role upon signup/initial login. The Role gets applied correctly. However, the problem is that the initial access token the user is given doesn’t have the permissions for that role in it. If the subsequently login again, the permissions are there. I suppose that this is because either the access token has already been generated by the time the rule is executed or because there’s a slight delay between when the roles are updated and actually applied to the access token.
Any help would be greatly appreciated.