docs: public ServerAuthorizationCodeGrant createCodeGrant(
  			AuthorizationCodeRegistration reg) throws OAuthServiceException {
  		grant = new ServerAuthorizationCodeGrant(client, 3600L);
  		grant.setRedirectUri(reg.getRedirectUri());
  		grant.setSubject(reg.getSubject());
  		List<String> scope = reg.getApprovedScope().isEmpty() ? reg.getRequestedScope() 
                  : reg.getApprovedScope();
  		grant.setApprovedScopes(scope);
  		return grant;
  	}